/* ============================================================
   Devtree Concepts — style.css
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

:root {
  --bg: #07100b;
  --bg-soft: #0b1810;
  --surface: #101f16;
  --surface-2: #15281d;
  --line: rgba(170, 240, 200, 0.12);
  --text: #eaf6ee;
  --text-dim: #9db8a8;
  --accent: #34d97b;
  --accent-2: #a3e635;
  --accent-soft: rgba(52, 217, 123, 0.12);
  --gradient: linear-gradient(120deg, #34d97b, #a3e635);
  --radius: 18px;
  --nav-h: 76px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06140c; }

.container { width: min(1140px, 92vw); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- background ambience ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(52, 217, 123, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 35%, rgba(163, 230, 53, 0.07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(52, 217, 123, 0.08), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(170, 240, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 240, 200, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 16, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-dim); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #06140c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #06140c; box-shadow: 0 6px 24px rgba(52, 217, 123, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(52, 217, 123, 0.38); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(170, 240, 200, 0.35); background: rgba(255,255,255,0.06); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(52, 217, 123, 0.25);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 700; margin-bottom: 24px; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { font-size: 1.13rem; color: var(--text-dim); max-width: 35rem; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual svg { width: min(440px, 100%); height: auto; filter: drop-shadow(0 0 44px rgba(52, 217, 123, 0.18)); }

/* hero stats */
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat span { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 44rem; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.06rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.25s, border-color 0.25s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(52, 217, 123, 0.35); }
.pillar .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(163, 230, 53, 0.1); border: 1px solid rgba(163, 230, 53, 0.22);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.pillar h3 { font-size: 1.4rem; margin-bottom: 12px; }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }

.story {
  margin-top: 24px;
  background: linear-gradient(160deg, rgba(52,217,123,0.07), transparent 55%), var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
}
.story-icon { font-size: 2rem; line-height: 1; }
.story blockquote { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.story p { color: var(--text-dim); font-size: 0.97rem; max-width: 56rem; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(52, 217, 123, 0.35); background: var(--surface-2); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid rgba(52, 217, 123, 0.25);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.service h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.project {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(155deg, var(--surface-2), var(--bg-soft) 70%);
  transition: transform 0.25s, border-color 0.25s;
}
.project:hover { transform: translateY(-4px); border-color: rgba(52, 217, 123, 0.4); }
.project-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 1.75rem; }
.project p { color: var(--text-dim); font-size: 0.98rem; flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.78rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  padding: 5px 13px; border-radius: 999px;
}
.project-cta { color: var(--accent); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.project-cta:hover { text-decoration: underline; }

.project.client { background: linear-gradient(155deg, rgba(52,217,123,0.1), var(--bg-soft) 75%); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.member:hover { transform: translateY(-4px); border-color: rgba(52, 217, 123, 0.35); }
.avatar {
  width: 112px; height: 112px; margin: 0 auto 20px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(52, 217, 123, 0.28);
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.member h3 { font-size: 1.18rem; margin-bottom: 4px; }
.member > span { display: block; font-size: 0.88rem; color: var(--text-dim); }

/* ---------- contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 56px;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 30px; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 0.97rem; }
.contact-line svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; }
.contact-line a:hover { color: var(--accent); }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; letter-spacing: 0.04em; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(52, 217, 123, 0.05);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: rgba(0,0,0,0.25); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { font-size: 0.86rem; color: var(--text-dim); margin-top: 12px; max-width: 26rem; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- legal page ---------- */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal-inner { width: min(820px, 92vw); margin-inline: auto; }
.legal h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 12px; }
.legal .lede { color: var(--text-dim); margin-bottom: 48px; }
.legal h2 { font-size: 1.6rem; margin: 56px 0 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.18rem; margin: 32px 0 12px; color: var(--accent); }
.legal h4 { font-size: 1rem; margin: 24px 0 8px; }
.legal p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 14px; }
.legal a { color: var(--accent); word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; color: var(--text); margin-bottom: 14px; line-height: 1.8; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-visual svg { width: min(320px, 70vw); }
  .about-grid, .services-grid, .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; padding: 36px 28px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(7, 16, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 4vw 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links a.btn { display: inline-flex; width: 100%; padding: 14px 24px; font-size: 1rem; }
  .nav-cta-li { padding-top: 10px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .team-grid, .form-row { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .story { grid-template-columns: 1fr; }
  .contact-wrap { padding: 28px 20px; }
  .hero-stats { gap: 24px; }
}
