/* DesignGraft Consultant — styles */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --navy-3: #1a417a;
  --teal: #14b8a6;
  --cyan: #22d3ee;
  --orange: #ff7a18;
  --orange-dark: #e2640a;
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #1c2b40;
  --muted: #55657d;
  --line: #dde4ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.1);
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--orange); color: #111;
  padding: 8px 16px; border-radius: 8px; z-index: 200; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--orange); color: #1a0e00; box-shadow: 0 8px 22px rgba(255, 122, 24, 0.35); }
.btn-primary:hover { background: #ff8e3a; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 24, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(11, 31, 58, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand svg { width: 38px; height: 38px; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; line-height: 1; }
.brand-text span { color: var(--cyan); }
.brand-text small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; color: #9fb3cf; margin-top: 5px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy);
  padding: 8px 24px 24px; display: none; flex-direction: column; gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav.open { display: flex; }
.main-nav a { color: #d5e0f0; text-decoration: none; padding: 12px 0; font-weight: 500; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--cyan); }
.main-nav .nav-cta { color: #1a0e00; background: var(--orange); border-radius: 999px; text-align: center; font-weight: 700; padding: 12px 22px; margin-top: 8px; }
.main-nav .nav-cta:hover { color: #1a0e00; background: #ff8e3a; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  padding: 72px 0 140px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c6d4e8; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; color: #9fb3cf; font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25); }
.hero-art { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.float { animation: float 7s ease-in-out infinite; }
.float.d2 { animation-delay: -2.5s; animation-duration: 8s; }
.float.d3 { animation-delay: -4.5s; animation-duration: 9s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--teal); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Services */
.services { margin-top: -60px; padding-top: 0; z-index: 2; }
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 31, 58, 0.16); border-color: #c4d3e6; }
.card:hover::after { transform: scaleX(1); }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--cyan);
}
.icon-box svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 16px; }
.card .num { position: absolute; right: 22px; top: 18px; font-family: var(--font-head); font-weight: 800; font-size: 44px; color: #eef2f8; line-height: 1; }

/* Design split */
.design { background: var(--white); }
.split { display: grid; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.mockup { background: linear-gradient(145deg, #e8f7f5, #e6f1fb); border-radius: 24px; padding: 28px; }
.browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 12px 14px; background: #eef2f8; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3cedd; }
.browser-bar i:nth-child(1) { background: #ff6b5e; }
.browser-bar i:nth-child(2) { background: #ffc233; }
.browser-bar i:nth-child(3) { background: #3ccf6e; }
.browser-bar b { margin-left: 10px; flex: 1; height: 20px; border-radius: 10px; background: #fff; }
.browser-body { padding: 20px; display: grid; gap: 14px; }
.mock-hero { height: 110px; border-radius: 10px; background: linear-gradient(120deg, var(--navy), var(--teal)); display: flex; align-items: flex-end; padding: 14px; }
.mock-hero span { display: block; height: 10px; width: 55%; background: rgba(255, 255, 255, 0.85); border-radius: 6px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-prod { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock-prod div { aspect-ratio: 1; border-radius: 8px; margin-bottom: 8px; }
.mock-prod:nth-child(1) div { background: linear-gradient(135deg, #ffd9b8, var(--orange)); }
.mock-prod:nth-child(2) div { background: linear-gradient(135deg, #bff3ec, var(--teal)); }
.mock-prod:nth-child(3) div { background: linear-gradient(135deg, #c9eefa, var(--cyan)); }
.mock-prod span { display: block; height: 7px; background: #dde4ee; border-radius: 4px; }
.mock-prod span + span { width: 50%; margin-top: 6px; background: var(--orange); }

/* Numbers */
.numbers { background: var(--navy); color: #fff; padding: 88px 0; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); margin: -20px 0; }
.numbers .container { padding-top: 24px; padding-bottom: 24px; }
.stats { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.stat { border-left: 3px solid var(--teal); padding-left: 20px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(36px, 6vw, 54px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat strong sup { font-size: 0.55em; color: var(--cyan); vertical-align: baseline; margin-left: 2px; }
.stat span { color: #aec1db; font-size: 15px; }
.numbers .section-head h2 { color: #fff; }
.numbers .section-head p { color: #aec1db; }
.numbers .section-head .eyebrow { color: var(--cyan); }
.numbers .section-head { margin-bottom: 40px; }

/* Approach */
.steps { display: grid; gap: 24px; counter-reset: step; grid-template-columns: 1fr; }
.step { position: relative; padding: 28px 26px 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: #04323a; background: linear-gradient(135deg, var(--cyan), var(--teal)); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* About */
.about { background: linear-gradient(180deg, var(--bg), #eaf0f8); }
.about-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 36px; position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #04323a; background: linear-gradient(135deg, var(--cyan), var(--teal)); margin-bottom: 20px; position: relative; }
.about-card h3 { color: #fff; font-size: 24px; margin-bottom: 4px; position: relative; }
.about-card .role { color: var(--cyan); font-weight: 600; margin-bottom: 20px; position: relative; }
.about-card p { color: #c6d4e8; position: relative; }
.about-card a { color: var(--cyan); position: relative; }
.facts { display: grid; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 15px; color: #c6d4e8; position: relative; }
.facts div strong { color: #fff; display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-head); }

/* Contact */
.contact { background: var(--white); }
.contact-grid { display: grid; gap: 40px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-box { width: 48px; height: 48px; margin: 0; flex: none; border-radius: 12px; }
.contact-list .icon-box svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.contact-list a { color: var(--navy-3); font-weight: 600; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--orange-dark); }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid #c7d3e3; background: #fff; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); }
.field .err { display: none; color: #b42318; font-size: 14px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .err { display: block; }
.form-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.form-note a { color: var(--navy-3); }
.form-status { margin-top: 14px; font-weight: 600; color: #0b7a6e; min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--navy); color: #aec1db; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

/* Privacy page */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0 80px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #c6d4e8; margin: 0; }
.legal { padding: 48px 0 96px; }
.legal-layout { display: grid; gap: 32px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; align-self: start; }
.toc h2 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--navy-3); text-decoration: none; }
.toc a:hover { color: var(--orange-dark); text-decoration: underline; }
.legal-body { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; }
.legal-body h2 { font-size: 24px; margin-top: 36px; padding-top: 4px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy-3); font-weight: 600; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 16px; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: #eef2f8; font-family: var(--font-head); color: var(--navy); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .legal-body { padding: 48px; }
  .form { padding: 40px; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 32px; background: none; padding: 0; border: 0; }
  .main-nav a { padding: 8px 0; font-size: 15px; }
  .main-nav .nav-cta { margin: 0; padding: 10px 24px; }
  .hero { padding: 96px 0 170px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .legal-layout { grid-template-columns: 280px 1fr; gap: 40px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (max-width: 1023px) {
  .about-grid > div:first-child { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
