/* ============================================================
   CRESTWAKE WEB STUDIO - Design System & Styles
   ============================================================

   Table of Contents
   -----------------
   0.  Design Tokens
   1.  Reset & Base
   2.  Typography
   3.  Layout
   4.  Components - Buttons, Eyebrow, Section Header
   5.  Navigation
   6.  Hero
   7.  Services
   8.  Portfolio
   9.  Pricing
   10. About
   11. FAQ
   12. Contact & Form
   13. Footer
   14. Animations & Reveal
   15. Responsive
   ============================================================ */


/* -- 0. DESIGN TOKENS ------------------------------------- */

:root {
  /* Colors - Background */
  --c-bg:          #f8f6f2;
  --c-bg-subtle:   #f1eee7;
  --c-bg-dark:     #0c0c0c;

  /* Colors - Foreground */
  --c-fg:          #141414;
  --c-fg-2:        #6a6a6a;
  --c-fg-3:        #5f6462;
  --c-fg-inv:      #f2f2f0;
  --c-fg-inv-2:    rgba(242, 242, 240, 0.5);

  /* Colors - Accent (matched to logo mark teal) */
  --c-accent:      #16c5bc;
  --c-accent-dark: #08716d;
  --c-accent-soft: rgba(22, 197, 188, 0.12);

  /* Colors - Border */
  --c-border:      #ded8ce;
  --c-border-dark: rgba(255, 255, 255, 0.08);

  /* Shadows - layered for realism, never flat */
  --shadow-card:       0 1px 2px rgba(20,20,20,0.035), 0 18px 46px rgba(20,20,20,0.055);
  --shadow-card-hover: 0 8px 22px rgba(20,20,20,0.08), 0 28px 70px rgba(22,197,188,0.1);
  --shadow-nav:        0 1px 0 rgba(0,0,0,0.07), 0 16px 40px rgba(20,20,20,0.06);
  --shadow-button:     0 14px 32px rgba(20,20,20,0.16), 0 0 0 1px rgba(255,255,255,0.08) inset;

  /* Typography */
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Newsreader', Georgia, serif;

  /* Type Scale */
  --text-xs:   0.6875rem;  /* 11px - eyebrows  */
  --text-sm:   0.875rem;   /* 14px             */
  --text-base: 1rem;       /* 16px             */
  --text-lg:   1.125rem;   /* 18px             */
  --text-xl:   1.25rem;    /* 20px - card h3   */
  --text-2xl:  1.5rem;     /* 24px             */
  --text-3xl:  2.625rem;  /* section h2  */
  --text-hero: 5rem;      /* hero h1     */

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;

  /* Layout */
  --container-w:  1120px;
  --container-px: clamp(1.25rem, 4vw, 2rem);

  /* Section rhythm */
  --section-py: clamp(5rem, 10vw, 8rem);

  /* Border radius */
  --r-sm:  8px;
  --r-md:  8px;
  --r-lg:  8px;

  /* Transitions - only transition specific props, never "all" */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --t-fast:    150ms;
  --t-base:    220ms;
  --t-slow:    400ms;

  /* Nav */
  --nav-h: 76px;

  /* Atmospheric background */
  --atmosphere-speed: 34s;
  --atmosphere-opacity: 0.64;
  --beam-speed: 42s;
  --beam-opacity: 0.62;
  --wave-speed: 28s;
  --wave-line-opacity: 0.5;
  --wave-tone-rgb: 22, 197, 188;
  --wave-coral-rgb: 202, 115, 120;
  --wave-warm-rgb: 226, 202, 164;
  --wave-neutral-rgb: 20, 20, 20;
}


/* -- 1. RESET & BASE -------------------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-fg);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  transform: translate3d(0, var(--atmosphere-y, 0), 0);
  background:
    linear-gradient(180deg, rgba(248, 246, 242, 0.98) 0%, rgba(248, 246, 242, 0.92) 44%, rgba(241, 238, 231, 0.84) 100%);
}

.site-atmosphere::before,
.site-atmosphere::after {
  content: '';
  position: absolute;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.site-atmosphere::before {
  inset: -28vh -16vw;
  background:
    linear-gradient(118deg, rgba(var(--wave-tone-rgb), 0.16) 0%, rgba(var(--wave-tone-rgb), 0.075) 26%, transparent 50%),
    linear-gradient(242deg, transparent 18%, rgba(var(--wave-coral-rgb), 0.07) 48%, rgba(var(--wave-warm-rgb), 0.08) 66%, transparent 84%),
    linear-gradient(312deg, transparent 34%, rgba(var(--wave-coral-rgb), 0.05) 58%, transparent 76%),
    linear-gradient(180deg, rgba(248, 246, 242, 0) 0%, rgba(241, 238, 231, 0.52) 100%);
  opacity: var(--atmosphere-opacity);
  animation: atmosphere-flow var(--atmosphere-speed) var(--ease) infinite alternate;
}

.site-atmosphere::after {
  inset: -6vh -12vw auto -12vw;
  height: min(860px, 92vh);
  background:
    linear-gradient(105deg, rgba(var(--wave-tone-rgb), 0) 4%, rgba(var(--wave-tone-rgb), var(--wave-line-opacity)) 30%, rgba(var(--wave-coral-rgb), 0.28) 58%, rgba(var(--wave-warm-rgb), 0.18) 72%, rgba(var(--wave-tone-rgb), 0) 94%);
  opacity: 0.78;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520'%3E%3Cg fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath opacity='.46' stroke-width='1.1' d='M-60 164 C 128 58 316 252 544 158 S 882 116 1120 220 S 1336 330 1500 184'/%3E%3Cpath opacity='.34' stroke-width='1' d='M-80 250 C 150 126 304 332 560 238 S 920 178 1160 286 S 1360 390 1510 260'/%3E%3Cpath opacity='.24' stroke-width='1' d='M-30 88 C 180 8 346 162 560 86 S 934 44 1148 126 S 1344 220 1490 92'/%3E%3Cpath opacity='.28' stroke-width='1' d='M-40 344 C 182 236 386 430 604 330 S 962 270 1188 374 S 1382 464 1500 348'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520'%3E%3Cg fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath opacity='.46' stroke-width='1.1' d='M-60 164 C 128 58 316 252 544 158 S 882 116 1120 220 S 1336 330 1500 184'/%3E%3Cpath opacity='.34' stroke-width='1' d='M-80 250 C 150 126 304 332 560 238 S 920 178 1160 286 S 1360 390 1510 260'/%3E%3Cpath opacity='.24' stroke-width='1' d='M-30 88 C 180 8 346 162 560 86 S 934 44 1148 126 S 1344 220 1490 92'/%3E%3Cpath opacity='.28' stroke-width='1' d='M-40 344 C 182 236 386 430 604 330 S 962 270 1188 374 S 1382 464 1500 348'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 1280px 440px;
  mask-size: 1280px 440px;
  animation: wave-drift var(--wave-speed) var(--ease) infinite alternate;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font: inherit;
}

/* Focus ring - visible only for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-fg);
  color: var(--c-fg-inv);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-4);
}


/* -- 2. TYPOGRAPHY ---------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--c-fg);
}

p {
  line-height: 1.65;
}

.hide-mobile { display: inline; }


/* -- 3. LAYOUT -------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
  position: relative;
}

.section > .container {
  position: relative;
  z-index: 1;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--sp-4));
}

.section--dark {
  background-color: var(--c-bg-dark);
  color: var(--c-fg-inv);
}

.section--subtle {
  background-color: var(--c-bg-subtle);
}


/* -- 4. COMPONENTS ---------------------------------------- */

/* - Eyebrow - */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-4);
}

.eyebrow--light {
  color: rgba(242, 242, 240, 0.5);
}

/* - Section header - */
.section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 680px;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
  max-width: 600px;
}

.section__title {
  font-size: var(--text-3xl);
  letter-spacing: 0;
  line-height: 1.1;
}

.section__title--light {
  color: var(--c-fg-inv);
}

.section__sub {
  margin-top: var(--sp-4);
  font-size: var(--text-lg);
  color: var(--c-fg-2);
  line-height: 1.6;
}

.section__sub--light {
  color: var(--c-fg-inv-2);
}

/* - Buttons - */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(20, 20, 20, 0);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 68%);
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform 650ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.btn:active {
  transform: scale(0.97);
}

/* Primary - near-black, used on light sections */
.btn--primary {
  background-color: var(--c-fg);
  color: #fff;
  border-color: var(--c-fg);
}

.btn--primary:hover {
  background-color: #000;
  border-color: #000;
  box-shadow: var(--shadow-button);
}

.btn--primary:active {
  background-color: #000;
}

/* Ghost - outline, used on light sections */
.btn--ghost {
  background-color: transparent;
  color: var(--c-fg);
  border-color: rgba(20, 20, 20, 0.22);
}

.btn--ghost:hover {
  background-color: rgba(20, 20, 20, 0.05);
  border-color: rgba(20, 20, 20, 0.35);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

/* White - used on dark sections */
.btn--white {
  background-color: #fff;
  color: var(--c-fg);
  border-color: #fff;
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 34px rgba(22, 197, 188, 0.14);
}

/* Outline light - used on dark sections */
.btn--outline-light {
  background-color: transparent;
  color: var(--c-fg-inv);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

/* Sizes */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 0.9375rem 1.875rem;
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}


/* -- 5. NAVIGATION ---------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  transition:
    background-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background-color: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-nav);
  border-color: rgba(20, 20, 20, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: var(--sp-8);
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: 176px;
  height: 64px;
  transition:
    opacity var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
  overflow: hidden;
}

.nav__logo:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.nav__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-fg-2);
  transition: color var(--t-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-fg);
  transition: width var(--t-base) var(--ease);
}

.nav__link:hover {
  color: var(--c-fg);
}

.nav__link:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav__cta {
  flex-shrink: 0;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--c-fg);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  transform-origin: center;
}

.nav.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--container-px) var(--sp-6);
  gap: var(--sp-1);
  background-color: rgba(248, 246, 242, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-border);
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    max-height var(--t-slow) var(--ease),
    padding var(--t-slow) var(--ease),
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    visibility 0ms linear var(--t-slow);
}

.nav__mobile.is-open {
  max-height: 380px;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-6);
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0ms;
}

.nav__mobile nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav__mobile-link {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--c-fg);
  border-radius: var(--r-sm);
  transition:
    background-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.nav__mobile-link:hover {
  background-color: var(--c-bg-subtle);
  transform: translateX(2px);
}

.nav__mobile-cta {
  margin-top: var(--sp-4);
  align-self: flex-start;
  background-color: var(--c-fg);
  color: #fff;
  border-color: var(--c-fg);
}

.nav__mobile-cta:hover {
  background-color: #000;
}


/* -- 6. HERO ---------------------------------------------- */

.hero {
  min-height: min(760px, calc(92svh - var(--nav-h)));
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Readability veil over the atmospheric background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 246, 242, 0.98) 0%, rgba(248, 246, 242, 0.78) 44%, rgba(248, 246, 242, 0.16) 100%),
    radial-gradient(circle, rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: auto, 34px 34px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: -20% -14% -10% -8%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(126deg, transparent 36%, rgba(var(--wave-coral-rgb), 0.28) 50%, rgba(var(--wave-warm-rgb), 0.42) 58%, rgba(255, 255, 255, 0.72) 64%, transparent 76%),
    linear-gradient(70deg, transparent 30%, rgba(var(--wave-tone-rgb), 0.34) 52%, rgba(var(--wave-coral-rgb), 0.18) 68%, transparent 82%),
    conic-gradient(
      from 238deg at 52% 86%,
      transparent 0deg,
      rgba(var(--wave-coral-rgb), 0.28) 15deg,
      rgba(var(--wave-warm-rgb), 0.48) 28deg,
      rgba(255, 255, 255, 0.78) 36deg,
      rgba(var(--wave-tone-rgb), 0.42) 50deg,
      transparent 70deg,
      rgba(var(--wave-coral-rgb), 0.12) 98deg,
      transparent 136deg
    ),
    linear-gradient(116deg, transparent 12%, rgba(var(--wave-tone-rgb), 0.11) 42%, rgba(var(--wave-coral-rgb), 0.06) 62%, transparent 80%);
  opacity: var(--beam-opacity);
  filter: blur(16px);
  transform: translate3d(0, 0, 0) scale(1.03);
  transform-origin: 52% 86%;
  will-change: transform, opacity;
  animation: beam-shift var(--beam-speed) var(--ease) infinite alternate;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, black 62%, black 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  transform: translate3d(0, var(--hero-y, 0), 0);
  will-change: transform;
}

.hero__content {
  max-width: 760px;
}

.hero__eyebrow {
  margin-bottom: var(--sp-5);
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.03;
  color: var(--c-fg);
  margin-bottom: var(--sp-6);
  text-wrap: balance;
  text-shadow: 0 18px 55px rgba(20, 20, 20, 0.08);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--c-fg-2);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--sp-10);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}


/* -- 7. SERVICES ------------------------------------------ */

.services {
  background:
    linear-gradient(180deg, rgba(241, 238, 231, 0.74) 0%, rgba(248, 246, 242, 0.92) 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--c-surface, #fffdf8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  box-shadow: var(--shadow-card);
  position: relative;
  isolation: isolate;
  transition:
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(22, 197, 188, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-fg-3);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-fg-2);
  flex-shrink: 0;
  transition:
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.service-card:hover .service-card__icon {
  color: var(--c-accent-dark);
  border-color: rgba(22, 197, 188, 0.34);
  background-color: rgba(22, 197, 188, 0.06);
  transform: translateY(-2px);
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--c-fg-2);
  line-height: 1.65;
  flex: 1;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.service-card__features li {
  font-size: var(--text-sm);
  color: var(--c-fg-2);
  padding-left: var(--sp-5);
  position: relative;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--c-fg-3);
}


/* -- 7b. PROCESS ----------------------------------------- */

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
}

.process__step {
  position: relative;
  padding-top: var(--sp-6);
}

.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0.4;
}

.process__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-4);
}

.process__step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: var(--sp-3);
}

.process__step-desc {
  font-size: var(--text-sm);
  color: var(--c-fg-2);
  line-height: 1.65;
}


/* -- 8. PORTFOLIO ----------------------------------------- */

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--c-surface, #fffdf8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  isolation: isolate;
  transition:
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.1);
}

.portfolio-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

/* Non-featured cards also get side-by-side on desktop when portfolio is single-column */
@media (min-width: 768px) {
  .portfolio-card:not(.portfolio-card--placeholder) {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  }

  .portfolio-card:not(.portfolio-card--placeholder) .portfolio-card__preview {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .portfolio-card:not(.portfolio-card--placeholder) .portfolio-card__body {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    justify-content: center;
  }

  .portfolio-card:not(.portfolio-card--placeholder) .portfolio-card__title {
    font-size: var(--text-2xl);
    line-height: 1.1;
  }

  .portfolio-card:not(.portfolio-card--placeholder) .portfolio-card__desc {
    font-size: var(--text-base);
    line-height: 1.7;
  }
}

/* Preview area - top portion of card */
.portfolio-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.portfolio-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(115deg, rgba(22, 197, 188, 0.14), rgba(202, 115, 120, 0.1) 48%, transparent 78%);
  mix-blend-mode: multiply;
  opacity: 0.32;
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

.portfolio-card--featured .portfolio-card__preview {
  aspect-ratio: auto;
  min-height: 380px;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform var(--t-slow) var(--ease);
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.045);
}

.portfolio-card:hover .portfolio-card__preview::after {
  opacity: 0.18;
  transform: scale(1.04);
}

/* Gradient placeholder (used when no screenshot) */
.portfolio-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
  position: relative;
  transition: transform var(--t-slow) var(--ease);
}

.portfolio-card:hover .portfolio-card__placeholder {
  transform: scale(1.03);
}

.portfolio-card--placeholder {
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.035);
}

.portfolio-card--placeholder .portfolio-card__preview {
  opacity: 0.9;
}

.portfolio-card--placeholder .portfolio-card__body {
  background: #fbfbfa;
}

/* Subtle browser chrome dots */
.portfolio-card__placeholder::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 10px 0 0 rgba(255, 255, 255, 0.12), 20px 0 0 rgba(255, 255, 255, 0.08);
}

.portfolio-card__placeholder-url {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Card body */
.portfolio-card__body {
  padding: 1.375rem 1.5rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.portfolio-card--featured .portfolio-card__body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  justify-content: center;
}

.portfolio-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.portfolio-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg-3);
}

.portfolio-card__placeholder-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(47, 111, 106, 0.08);
  border: 1px solid rgba(47, 111, 106, 0.18);
  border-radius: 4px;
  padding: 2px 6px;
}

.portfolio-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--c-fg);
}

.portfolio-card--featured .portfolio-card__title {
  font-size: var(--text-3xl);
  line-height: 1.05;
}

.portfolio-card__desc {
  font-size: var(--text-sm);
  color: var(--c-fg-2);
  line-height: 1.6;
  flex: 1;
}

.portfolio-card--featured .portfolio-card__desc {
  font-size: var(--text-base);
  line-height: 1.7;
  flex: 0;
}

.portfolio-card__proof {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.portfolio-card__proof li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--c-fg-2);
  line-height: 1.55;
}

.portfolio-card__proof li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-accent);
  opacity: 0.65;
}

.portfolio-card__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-1);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.portfolio-card__links--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.portfolio-card__live-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-fg);
  transition:
    color var(--t-fast) var(--ease-out),
    opacity var(--t-fast) var(--ease-out);
}

.portfolio-card__live-link:hover {
  color: var(--c-accent-dark);
  opacity: 1;
}

.portfolio-card__live-link svg {
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}

.portfolio-card__live-link:hover svg {
  transform: translate(2px, -2px);
}

/* -- 9. PRICING ------------------------------------------- */

.pricing.section--dark {
  overflow: hidden;
  background:
    linear-gradient(154deg, rgba(22, 197, 188, 0.16) 0%, rgba(12, 12, 12, 0) 34%),
    linear-gradient(24deg, rgba(202, 115, 120, 0.13) 0%, rgba(12, 12, 12, 0) 32%),
    linear-gradient(180deg, #101010 0%, #090909 100%);
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  isolation: isolate;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.16);
  transition:
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 38%);
  opacity: 0.6;
  transition: opacity var(--t-base) var(--ease-out);
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28), 0 0 42px rgba(22, 197, 188, 0.08);
  transform: translateY(-4px);
}

.pricing-card--featured {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(22, 197, 188, 0.34);
}

.pricing-card--build {
  background: rgba(255, 255, 255, 0.048);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.16);
}

.pricing-card--featured:hover {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(22, 197, 188, 0.46);
}

.pricing-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-inv-2);
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.pricing-card__amount {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--c-fg-inv);
}

.pricing-card__amount--long {
  font-size: 2.1rem;
  line-height: 1.05;
  text-wrap: balance;
}

.pricing-card__mo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-card__term {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-fg-inv-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--c-fg-inv-2);
  line-height: 1.65;
  flex: 1;
}

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pricing-card__list li {
  font-size: var(--text-sm);
  color: rgba(242, 242, 240, 0.7);
  padding-left: var(--sp-5);
  position: relative;
}

.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.pricing__note {
  max-width: 820px;
  margin: var(--sp-5) auto 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 242, 240, 0.64);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stripe-placeholder {
  max-width: 820px;
  margin: var(--sp-4) auto 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(22, 197, 188, 0.22);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(22, 197, 188, 0.11), rgba(255, 255, 255, 0.045) 52%, rgba(202, 115, 120, 0.08)),
    rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18);
  transition:
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.stripe-placeholder:hover {
  border-color: rgba(22, 197, 188, 0.34);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.26), 0 0 42px rgba(22, 197, 188, 0.08);
  transform: translateY(-3px);
}

.stripe-placeholder__eyebrow {
  margin-bottom: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.52);
}

.stripe-placeholder__title {
  font-size: var(--text-2xl);
  color: var(--c-fg-inv);
  letter-spacing: 0;
}

.stripe-placeholder__copy {
  max-width: 520px;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(242, 242, 240, 0.62);
  line-height: 1.65;
}

.stripe-placeholder__btn {
  flex-shrink: 0;
}


/* -- 10. ABOUT -------------------------------------------- */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(4rem, 8vw, 7rem);
  align-items: start;
}

.about__title {
  font-size: var(--text-3xl);
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.about__desc {
  font-size: var(--text-base);
  color: var(--c-fg-2);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.about__desc:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}

.about__stat {
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.about__stat:first-child {
  border-top: 1px solid var(--c-border);
}

.about__stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg-3);
  margin-bottom: var(--sp-1);
}

.about__stat-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-fg);
  letter-spacing: 0;
}


/* -- 11. FAQ ---------------------------------------------- */

.faq__list {
  max-width: 680px;
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
  transition:
    border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.faq-item:first-child {
  border-top: 1px solid var(--c-border);
}

.faq-item:hover {
  border-color: rgba(20, 20, 20, 0.16);
  background-color: rgba(255, 255, 255, 0.34);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: var(--sp-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-fg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--t-fast) var(--ease-out);
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; }

.faq-item__q:hover {
  color: var(--c-fg-2);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-fg-2);
  transition:
    transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease-out);
}

details[open] .faq-item__icon {
  transform: rotate(45deg);
  border-color: rgba(0, 0, 0, 0.15);
}

.faq-item__body {
  overflow: hidden;
  transition: height var(--t-slow) var(--ease);
}

.faq-item__body p {
  padding-bottom: var(--sp-5);
  font-size: var(--text-base);
  color: var(--c-fg-2);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

details[open] .faq-item__body p {
  opacity: 1;
  transform: translateY(0);
}


/* -- 12. CONTACT & FORM ----------------------------------- */

.contact__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(4rem, 8vw, 7rem);
  align-items: start;
}

.contact__text {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}

.contact__title {
  font-size: var(--text-3xl);
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.contact__sub {
  font-size: var(--text-base);
  color: var(--c-fg-2);
  line-height: 1.7;
}

.contact__note {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--text-sm);
  color: var(--c-fg-2);
  line-height: 1.65;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-fg);
}

.form-label span {
  color: var(--c-fg-3);
}

.form-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-size: var(--text-base);
  color: var(--c-fg);
  background: var(--c-surface, #fffdf8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition:
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--c-fg-3);
}

.form-input:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-accent);
  background-color: rgba(255, 253, 248, 0.95);
  box-shadow: 0 0 0 3px rgba(22, 197, 188, 0.14), 0 12px 28px rgba(20, 20, 20, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Form status message */
.form-status {
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--r-sm);
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-base) var(--ease-out), padding var(--t-base) var(--ease-out);
}

.form-status.is-visible {
  max-height: 80px;
  padding: var(--sp-3) var(--sp-4);
}

.form-status--success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.form-status--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}


/* -- 13. FOOTER ------------------------------------------- */

.footer {
  padding-block: var(--sp-16) var(--sp-8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-12);
  align-items: start;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 104px;
  overflow: hidden;
  transition: opacity var(--t-fast) var(--ease-out);
}

.footer__logo:hover {
  opacity: 0.75;
}

.footer__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.95);
  transform-origin: center;
}

.footer__tagline {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-fg-inv-2);
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--c-fg-inv-2);
  transition:
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--c-fg-inv);
  transform: translateX(2px);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-fg-inv-2);
  transition:
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.footer__social-link:hover {
  color: var(--c-fg-inv);
  transform: translateX(2px);
}

.footer__bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border-dark);
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(242, 242, 240, 0.62);
}


/* -- 15. ANIMATIONS & REVEAL ------------------------------ */

.reveal-fade,
.reveal-up {
  opacity: 0;
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-up {
  transform: translateY(26px) scale(0.992);
}

.reveal-fade.is-revealed,
.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes atmosphere-flow {
  from {
    transform: translate3d(-2.4%, -1.4%, 0) scale(1);
  }

  to {
    transform: translate3d(2.2%, 1.2%, 0) scale(1.035);
  }
}

@keyframes wave-drift {
  from {
    transform: translate3d(-1.8%, -0.8%, 0) scale(1.01);
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.035);
  }
}

@keyframes beam-shift {
  from {
    opacity: 0.38;
    transform: translate3d(-2%, 0.6%, 0) rotate(-0.6deg) scale(1.02);
  }

  to {
    opacity: var(--beam-opacity);
    transform: translate3d(2.2%, -0.8%, 0) rotate(0.7deg) scale(1.06);
  }
}

/* Reduced motion - disable all animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-fade,
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav,
  .nav__mobile,
  .nav__mobile-link,
  .btn,
  .btn::after,
  .service-card,
  .service-card::before,
  .service-card__icon,
  .portfolio-card,
  .portfolio-card__img,
  .portfolio-card__preview::after,
  .pricing-card,
  .pricing-card::before,
  .stripe-placeholder,
  .nav__link::after,
  .faq-item,
  .faq-item__body,
  .faq-item__body p,
  .form-input,
  .footer__link,
  .footer__social-link {
    transition: none !important;
  }

  .site-atmosphere::before,
  .site-atmosphere::after,
  .hero::after {
    animation: none !important;
    transform: none !important;
  }

  .hero__inner,
  .site-atmosphere {
    transform: none !important;
  }
}


/* -- 16. RESPONSIVE --------------------------------------- */

/* - Tablet (max 1024px) - */
@media (max-width: 1024px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card--featured {
    grid-template-columns: 1fr;
  }

  .portfolio-card--featured .portfolio-card__preview {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .about__stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stat:nth-child(2),
  .about__stat:nth-child(4) {
    border-right: none;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .contact__text {
    position: static;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* - Mobile (max 767px) - */
@media (max-width: 767px) {
  :root {
    --nav-h: 62px;
    --text-hero: 3.25rem;
    --text-3xl: 2.25rem;
  }

  .nav__logo {
    width: 136px;
    height: 54px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open {
    height: auto;
  }

  .nav__mobile {
    display: flex;
  }

  .hide-mobile {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 5rem 4rem;
  }

  .hero::after {
    inset: -12% -52% -24% -42%;
    opacity: 0.36;
    filter: blur(20px);
  }

  .site-atmosphere::before {
    inset: -18vh -30vw;
    opacity: 0.4;
  }

  .site-atmosphere::after {
    inset: -8vh -44vw auto -44vw;
    height: 520px;
    opacity: 0.48;
    -webkit-mask-size: 860px 330px;
    mask-size: 860px 330px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(248, 246, 242, 0.97) 0%, rgba(248, 246, 242, 0.88) 100%),
      radial-gradient(circle, rgba(20, 20, 20, 0.1) 1px, transparent 1px);
    background-size: auto, 34px 34px;
  }

  .hero__sub {
    font-size: 1.125rem;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .process__step {
    padding-top: var(--sp-5);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing__note {
    max-width: 480px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .about__stat:nth-child(2),
  .about__stat:nth-child(4) {
    border-right: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__brand {
    grid-column: auto;
  }
}

/* - Small mobile (max 480px) - */
@media (max-width: 480px) {
  :root {
    --text-hero: 2.75rem;
    --text-3xl: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pricing-card__amount--long {
    font-size: 1.65rem;
  }
}


/* ============================================================
   PREMIUM HOMEPAGE REDESIGN OVERRIDES
   ============================================================ */

:root {
  --c-ink: #111413;
  --c-charcoal: #101312;
  --c-mist: #f8f6f2;
  --c-surface: #fffdf8;
  --c-warm: #e7decd;
  --c-coral: #c97873;
  --shadow-premium: 0 1px 2px rgba(17, 20, 19, 0.05), 0 24px 70px rgba(17, 20, 19, 0.08);
  --shadow-teal: 0 18px 50px rgba(22, 197, 188, 0.16), 0 2px 8px rgba(17, 20, 19, 0.06);
}

.btn--accent {
  background: linear-gradient(135deg, var(--c-accent), #42d8cd);
  border-color: rgba(12, 143, 136, 0.4);
  color: #062a27;
  box-shadow: 0 18px 44px rgba(22, 197, 188, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--accent:hover {
  background: linear-gradient(135deg, #31d5ca, var(--c-accent));
  border-color: rgba(12, 143, 136, 0.52);
  box-shadow: 0 20px 52px rgba(22, 197, 188, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero--premium {
  display: block;
  min-height: auto;
  padding-block: clamp(5.5rem, 9vw, 8.5rem) clamp(3rem, 5vw, 4rem);
}

.hero--premium::before {
  background:
    radial-gradient(circle at 74% 22%, rgba(22, 197, 188, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 72%, rgba(201, 120, 115, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(248, 246, 242, 0.98) 0%, rgba(248, 246, 242, 0.9) 48%, rgba(241, 238, 231, 0.56) 100%),
    radial-gradient(circle, rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px;
  opacity: 1;
}

.hero--premium::after {
  inset: 0 -10% -12% 38%;
  opacity: 0.44;
  filter: blur(22px);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 100%);
}

.hero__inner--split {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(540px, 0.98fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.75rem);
}

.hero__inner--split .hero__content {
  max-width: 620px;
}

.hero__inner--split .hero__headline {
  font-size: clamp(3.25rem, 5.35vw, 5.45rem);
  line-height: 1;
  max-width: 720px;
}

.hero__inner--split .hero__sub {
  max-width: 610px;
}

.hero__checkout-note {
  margin-top: var(--sp-4);
  color: var(--c-fg-2);
  font-size: var(--text-sm);
  max-width: 520px;
}

.hero__proof-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  max-width: 590px;
  margin-top: var(--sp-4);
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(17, 20, 19, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.84), rgba(255, 253, 248, 0.62)),
    rgba(255, 253, 248, 0.74);
  box-shadow: 0 14px 34px rgba(17, 20, 19, 0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__proof-note span {
  flex: 0 0 auto;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(22, 197, 188, 0.1);
  color: var(--c-accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__proof-note strong {
  flex: 1 1 280px;
  color: var(--c-fg);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.hero__visual {
  min-height: 520px;
  position: relative;
  isolation: isolate;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 12% 0 8% 7%;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(22, 197, 188, 0.18), rgba(201, 120, 115, 0.1)),
    radial-gradient(circle at 35% 35%, rgba(255, 253, 248, 0.86), transparent 18rem);
  border: 1px solid rgba(22, 197, 188, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow-teal);
  transform: rotate(-1.5deg);
}

.hero-preview {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(17, 20, 19, 0.12);
  background: #111;
  box-shadow: var(--shadow-premium);
}

.hero-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(22, 197, 188, 0.16), transparent 36%, rgba(201, 120, 115, 0.14));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-preview--main {
  inset: 5% 0 auto 0;
  height: 430px;
  z-index: 2;
  transform: rotate(0.75deg);
}

.hero-preview__chrome {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: linear-gradient(180deg, #f8f7f3, #ebe9e2);
  border-bottom: 1px solid rgba(17, 20, 19, 0.09);
}

.hero-preview__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 20, 19, 0.2);
}

.hero-preview__img {
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top center;
}

.proof-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(17, 20, 19, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.proof-strip__item {
  padding: 1rem 1.2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-fg);
  border-right: 1px solid rgba(17, 20, 19, 0.08);
}

.proof-strip__item:last-child {
  border-right: none;
}

.difference {
  background:
    linear-gradient(180deg, rgba(248, 246, 242, 0.9), rgba(241, 238, 231, 0.96)),
    radial-gradient(circle at 12% 16%, rgba(22, 197, 188, 0.12), transparent 22rem);
}

.difference__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.difference__heading {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}

.difference__panel {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(17, 20, 19, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-premium);
}

.difference__panel > p {
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  line-height: 1.45;
  color: var(--c-fg);
  max-width: 740px;
}

.difference__points {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}

.difference__points div {
  display: grid;
  grid-template-columns: 52px minmax(150px, 0.34fr) 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.difference__points span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent-dark);
}

.difference__points strong {
  line-height: 1.25;
}

.difference__points p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--c-fg-2);
}

.services__grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-fg);
  border-top: 1px solid var(--c-border);
  transition:
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.service-card__link:hover {
  color: var(--c-accent-dark);
  transform: translateX(2px);
}

.process__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.process__layout .section__header {
  margin-bottom: 0;
}

.portfolio__intro {
  max-width: 780px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.portfolio__intro .section__header {
  margin-bottom: 0;
}

.portfolio__intro .section__sub {
  margin-top: 0;
}

.portfolio-card {
  border-color: rgba(17, 20, 19, 0.1);
  background: var(--c-surface);
}

.portfolio-card__preview {
  background:
    linear-gradient(135deg, rgba(22, 197, 188, 0.15), rgba(17, 20, 19, 0.94)),
    #111;
}

.pricing__grid--three {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.18fr) minmax(0, 0.9fr);
  max-width: 1120px;
  align-items: stretch;
}

.pricing-card {
  min-height: 100%;
}

.pricing-card--bundle {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 0%, rgba(22, 197, 188, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.058));
  border-color: rgba(22, 197, 188, 0.42);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.32), 0 0 54px rgba(22, 197, 188, 0.14);
  transform: translateY(-10px);
}

.pricing-card--bundle::after {
  content: 'Best Fit';
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(22, 197, 188, 0.3);
  border-radius: 6px;
  background: rgba(22, 197, 188, 0.1);
  color: rgba(242, 242, 240, 0.76);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card--bundle:hover {
  transform: translateY(-14px);
}

.pricing-card--hosting {
  background: rgba(255, 255, 255, 0.032);
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.13);
}

.pricing-card--hosting::before {
  opacity: 0.38;
}

.pricing-card--hosting:hover {
  background: rgba(255, 255, 255, 0.052);
  border-color: rgba(255, 255, 255, 0.14);
}

.pricing__secondary {
  max-width: 820px;
  margin: var(--sp-4) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: rgba(242, 242, 240, 0.58);
  font-size: var(--text-sm);
}

.pricing__secondary a {
  color: var(--c-fg-inv);
  font-weight: 700;
  border-bottom: 1px solid rgba(242, 242, 240, 0.34);
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}

.pricing__secondary a:hover {
  color: var(--c-accent);
  border-color: rgba(22, 197, 188, 0.6);
}

.pricing-card .btn {
  min-height: 48px;
  padding-inline: 1rem;
  white-space: normal;
  text-align: center;
  line-height: 1.18;
}

.final-cta {
  background:
    radial-gradient(circle at 20% 18%, rgba(22, 197, 188, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(201, 120, 115, 0.16), transparent 24rem),
    linear-gradient(180deg, #111413 0%, #090b0b 100%);
  color: var(--c-fg-inv);
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

.final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.final-cta__title {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--c-fg-inv);
}

.final-cta__copy {
  max-width: 700px;
  margin-top: var(--sp-5);
  color: rgba(242, 242, 240, 0.66);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 280px;
}

@media (max-width: 1120px) {
  .hero__inner--split,
  .difference__inner,
  .process__layout,
  .portfolio__intro {
    grid-template-columns: 1fr;
  }

  .difference__heading {
    position: static;
  }

  .hero__visual {
    min-height: 520px;
  }

  .pricing__grid--three {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .pricing-card--bundle {
    order: -1;
    transform: none;
  }

  .pricing-card--bundle:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .hero--premium {
    padding-block: 3.25rem 2.5rem;
  }

  .hero__headline {
    font-size: clamp(2.58rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .hero__sub {
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .hero__inner--split {
    gap: var(--sp-8);
  }

  .hero__inner--split .hero__headline {
    font-size: clamp(2.58rem, 11vw, 2.95rem);
    line-height: 1;
  }

  .hero__inner--split .hero__sub {
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__actions .btn {
    min-height: 50px;
    padding-inline: 1rem;
    font-size: 1rem;
  }

  .hero__actions .btn--accent {
    grid-column: 1 / -1;
  }

  .hero__visual {
    min-height: 310px;
  }

  .hero-preview--main {
    inset: 0 0 auto 0;
    height: 255px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip__item {
    border-right: none;
    border-bottom: 1px solid rgba(17, 20, 19, 0.08);
  }

  .proof-strip__item:last-child {
    border-bottom: none;
  }

  .difference__points div {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .services__grid--three {
    grid-template-columns: 1fr;
  }

  .final-cta__inner {
    grid-template-columns: 1fr;
  }

  .final-cta__actions {
    min-width: 0;
  }

  .final-cta__actions .btn,
  .hero__actions .btn {
    width: 100%;
  }

  .pricing-card--bundle::after {
    position: static;
    display: inline-flex;
    width: fit-content;
    order: -1;
  }
}

.reveal-fade.is-revealed,
.reveal-up.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}
