/* =========================================================
   IWD — Independent Web Developer
   Apple-inspired design system (light + dark)
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #f5f5f7;
  --tile-alt: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  --glow: rgba(0, 113, 227, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 52px;
  color-scheme: light;
}

html.dark-mode {
  --bg: #000000;
  --bg-alt: #101012;
  --tile: #1c1c1e;
  --tile-alt: #1c1c1e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.16);
  --link: #2997ff;
  --nav-bg: rgba(22, 22, 23, 0.8);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  --glow: rgba(41, 151, 255, 0.16);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 980px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}

.brand {
  justify-self: start;
  font-size: 22px; font-weight: 800; letter-spacing: -0.05em;
  text-decoration: none; color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]:not(.nav-cta) { font-weight: 600; }
.nav-links .nav-cta {
  background: var(--accent); color: #fff; opacity: 1;
  padding: 5px 14px; border-radius: 980px; font-weight: 500;
}
.nav-links .nav-cta:hover { background: var(--accent-hover); }

.nav-controls { justify-self: end; display: flex; align-items: center; gap: 6px; }

.language-selector { display: flex; align-items: center; font-size: 12px; }
.language-option {
  font: inherit; font-weight: 500; letter-spacing: 0;
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 6px;
}
.language-option.active { color: var(--text); font-weight: 700; }
.language-separator { color: var(--line); }

.theme-toggle, .menu-toggle {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--text);
}
.theme-toggle:hover, .menu-toggle:hover { background: rgba(128, 128, 128, 0.16); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
html.dark-mode .theme-toggle .icon-moon { display: block; }
html.dark-mode .theme-toggle .icon-sun { display: none; }

.menu-toggle { display: none; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; width: 16px; height: 1.5px; background: currentColor;
  transition: transform 0.25s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
.btn {
  display: inline-block; font: inherit; font-size: 17px; letter-spacing: -0.022em;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 980px; padding: 12px 24px; transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }

.text-link { color: var(--link); text-decoration: none; font-size: 17px; }
.text-link::after { content: " ›"; }
.text-link:hover { text-decoration: underline; }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { text-align: center; padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }

.eyebrow { font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--muted); margin-bottom: 8px; }

.hero h1 {
  font-size: clamp(44px, 9vw, 96px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700;
  margin: 0 auto 20px;
}
.hero h1 span { display: block; }
.hero-subtitle { font-size: clamp(21px, 3vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 14px; }
.hero-description { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero-visual { position: relative; width: min(880px, 100%); margin: clamp(48px, 8vw, 80px) auto 0; }

.browser-card {
  background: var(--tile); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(128, 128, 128, 0.35); }
.browser-address {
  margin-left: 14px; font-size: 12px; color: var(--muted); letter-spacing: 0;
  background: rgba(128, 128, 128, 0.14); padding: 4px 16px; border-radius: 980px;
}
.browser-content {
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 64px); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%);
}
.browser-content small { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.browser-content h2 { font-size: clamp(28px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 10px; }
.browser-content p { color: var(--muted); font-size: clamp(16px, 2vw, 21px); }
.browser-line { width: 120px; height: 8px; border-radius: 980px; background: var(--accent); margin: 28px auto 0; opacity: 0.9; }

.floating-note {
  position: absolute; padding: 9px 18px; border-radius: 980px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--nav-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.note-one { left: -16px; bottom: 56px; }
.note-two { right: -16px; top: 84px; }

/* One orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .container > :nth-child(2) { animation-delay: 0.12s; }
  .hero .container > :nth-child(3) { animation-delay: 0.24s; }
  .hero .container > :nth-child(4) { animation-delay: 0.36s; }
  .hero .container > :nth-child(5) { animation-delay: 0.48s; }
  .hero .container > :nth-child(6) { animation-delay: 0.62s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero { text-align: center; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(40px, 8vw, 80px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; margin: 0 auto 18px; max-width: 14em; }
.page-hero .lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; color: var(--muted); max-width: 680px; margin: 0 auto; letter-spacing: -0.02em; }

/* =========================================================
   SECTIONS
   ========================================================= */
.statement { padding: clamp(64px, 11vw, 128px) 0; text-align: center; }
.statement p { font-size: clamp(28px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; color: var(--muted); max-width: 17em; margin: 0 auto; }
.statement strong { color: var(--text); }

.section { padding: clamp(72px, 11vw, 128px) 0; }
.section.tight-top { padding-top: 0; }
.section.alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-title { font-size: clamp(34px, 6vw, 64px); line-height: 1.07; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 16px; }
.section-description { font-size: clamp(17px, 2vw, 21px); line-height: 1.38; color: var(--muted); }
.section-footer { text-align: center; margin-top: 40px; }

/* =========================================================
   TILES
   ========================================================= */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: var(--tile); border-radius: 28px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 10px; min-height: 340px;
}
.alt .tile { background: var(--tile-alt); }
.tile h3 { font-size: 28px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.tile p { color: var(--muted); font-size: 17px; line-height: 1.45; }
.tile-icon { width: 48px; height: 48px; margin-bottom: auto; color: var(--link); }
.tile-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile.compact { min-height: 220px; justify-content: flex-end; }

.tag {
  display: inline-flex; align-self: flex-start; margin-top: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted);
  background: rgba(128, 128, 128, 0.14); padding: 5px 13px; border-radius: 980px;
}

/* Service feature rows */
.feature-list { display: grid; gap: 20px; }
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center;
  background: var(--tile); border-radius: 28px; padding: clamp(32px, 5vw, 64px);
}
.alt .feature { background: var(--tile-alt); }
.feature .tile-icon { margin-bottom: 20px; }
.feature h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); line-height: 1.45; }
.feature .tag { margin-top: 20px; }
.includes-title { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.includes li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
}
.includes li:last-child { border-bottom: 0; }
.includes li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--tile); border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.alt .step { background: var(--tile-alt); }
.step-number { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; color: var(--link); margin-bottom: auto; }
.step h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; font-weight: 700; }
.step p { color: var(--muted); font-size: 17px; line-height: 1.45; }

.steps-list { display: grid; gap: 20px; }
.steps-list .step {
  flex-direction: row; align-items: center; gap: clamp(24px, 6vw, 80px);
  min-height: 0; padding: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 64px);
}
.steps-list .step-number { font-size: clamp(64px, 10vw, 128px); margin: 0; min-width: 1.2em; }
.steps-list .step h3 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.steps-list .step p { font-size: clamp(17px, 2vw, 21px); max-width: 30em; }

/* Prices */
.price-tile { min-height: 420px; }
.price-tile h3 { font-size: 21px; color: var(--muted); font-weight: 600; letter-spacing: -0.02em; }
.price-value { font-size: clamp(36px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; margin-bottom: 6px; }
.price-tile .price-spacer { margin-bottom: auto; }
.price-tile .text-link { margin-top: 14px; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin: 32px auto 0; max-width: 560px; }

/* Lead paragraph (about) */
.lead { font-size: clamp(22px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; max-width: 24em; margin: 0 auto; text-align: center; }

/* CTA band */
.cta { text-align: center; }
.cta .section-title { margin-bottom: 14px; }
.cta .section-description { max-width: 540px; margin: 0 auto 32px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.contact-direct { min-height: 0; justify-content: flex-end; }
.contact-email { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.035em; color: var(--link); text-decoration: none; word-break: break-word; }
.contact-email:hover { text-decoration: underline; }

.form-tile { gap: 18px; min-height: 0; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 17px; letter-spacing: -0.022em; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.alt .field input, .alt .field textarea { background: var(--bg-alt); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.field textarea { min-height: 160px; resize: vertical; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-note { font-size: 13px; color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 28px 0 36px; letter-spacing: -0.01em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.footer-nav a { color: var(--text); text-decoration: none; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .tiles, .tiles.two, .steps { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 300px; }
  .feature { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); padding: 8px 24px 28px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; opacity: 1; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--link); }
  .nav-links .nav-cta { width: auto; margin-top: 20px; padding: 11px 24px; font-size: 17px; border-bottom: 0; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .tiles, .tiles.two, .steps { grid-template-columns: 1fr; }
  .tile { padding: 32px 28px; min-height: 260px; }
  .price-tile { min-height: 360px; }
  .floating-note { display: none; }
  .steps-list .step { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
