/* ============================================================
   DESIGN SYSTEM — mathsonchain
   Mobile-first | Dark/Light Theme | CSS Custom Properties
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ---------- Design Tokens — DARK (default) ---------- */
:root,
[data-theme="dark"] {
    --hue: 230;
    --primary: hsl(var(--hue), 85%, 62%);
    --primary-light: hsl(var(--hue), 85%, 72%);
    --primary-dark: hsl(var(--hue), 85%, 52%);
    --primary-glow: hsl(var(--hue), 100%, 62%, 0.25);

    --accent: hsl(165, 80%, 48%);
    --accent-glow: hsl(165, 100%, 48%, 0.2);

    --bg: hsl(220, 20%, 7%);
    --bg-elevated: hsl(220, 18%, 10%);
    --bg-card: hsl(220, 16%, 12%);
    --bg-card-hover: hsl(220, 16%, 15%);
    --bg-input: hsl(220, 16%, 14%);

    --border: hsl(220, 14%, 18%);
    --border-light: hsl(220, 14%, 22%);
    --border-focus: var(--primary);

    --text: hsl(220, 20%, 92%);
    --text-secondary: hsl(220, 12%, 62%);
    --text-tertiary: hsl(220, 10%, 44%);
    --text-inverse: hsl(220, 20%, 7%);

    --header-bg: hsl(220, 20%, 7%, 0.8);
    --header-bg-scrolled: hsl(220, 20%, 7%, 0.95);
    --menu-bg: var(--bg);

    --formula-filter: invert(1) hue-rotate(180deg);
}

/* ---------- Design Tokens — LIGHT ---------- */
[data-theme="light"] {
    --bg: hsl(220, 20%, 98%);
    --bg-elevated: hsl(220, 18%, 95%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-hover: hsl(220, 16%, 97%);
    --bg-input: hsl(220, 16%, 96%);

    --border: hsl(220, 14%, 88%);
    --border-light: hsl(220, 14%, 82%);

    --text: hsl(220, 20%, 12%);
    --text-secondary: hsl(220, 10%, 40%);
    --text-tertiary: hsl(220, 8%, 55%);
    --text-inverse: hsl(220, 20%, 98%);

    --header-bg: hsl(220, 20%, 98%, 0.85);
    --header-bg-scrolled: hsl(220, 20%, 98%, 0.95);
    --menu-bg: hsl(220, 20%, 98%);

    --primary-glow: hsl(var(--hue), 100%, 62%, 0.12);
    --accent-glow: hsl(165, 100%, 48%, 0.1);

    --formula-filter: none;
}

/* ---------- Common Tokens ---------- */
:root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.08);
    --shadow-md: 0 4px 12px hsl(0 0% 0% / 0.1);
    --shadow-lg: 0 8px 32px hsl(0 0% 0% / 0.12);
    --shadow-glow: 0 0 40px var(--primary-glow);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
    --duration-slow: 0.5s;

    --container-max: 1200px;
    --header-height: 4rem;
}

[data-theme="dark"] {
    --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.25);
    --shadow-md: 0 4px 12px hsl(0 0% 0% / 0.3);
    --shadow-lg: 0 8px 32px hsl(0 0% 0% / 0.35);
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: var(--space-md); }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.header--scrolled {
    border-bottom-color: var(--border);
    background: var(--header-bg-scrolled);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--text-lg);
    z-index: 101;
}
.nav__logo-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.nav__logo-text { color: var(--text); }

/* Nav right group */
.nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 101;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
    background: var(--bg-card);
}
.theme-toggle__icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}
[data-theme="dark"] .theme-toggle__icon--dark { display: none; }
[data-theme="dark"] .theme-toggle__icon--light { display: block; }
[data-theme="light"] .theme-toggle__icon--light { display: none; }
[data-theme="light"] .theme-toggle__icon--dark { display: block; }

/* Hamburger */
.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav__toggle-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    margin: 0 auto;
}
.nav__toggle.active .nav__toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active .nav__toggle-line:nth-child(2) { opacity: 0; }
.nav__toggle.active .nav__toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100dvh;
    background: var(--menu-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    transition: right var(--duration-slow) var(--ease);
    z-index: 100;
}
.nav__menu.active { right: 0; }

.nav__link {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
    padding: var(--space-sm) var(--space-md);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); }

.nav__link--cta {
    background: var(--primary);
    color: white !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav__link--cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.hero__glow--1 { width: 600px; height: 600px; background: var(--primary); top: -20%; right: -10%; opacity: 0.15; }
.hero__glow--2 { width: 400px; height: 400px; background: var(--accent); bottom: -10%; left: -5%; opacity: 0.1; }

.hero__content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }

.hero__badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: hsl(165, 80%, 48%, 0.1);
    border: 1px solid hsl(165, 80%, 48%, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--accent);
    margin-bottom: var(--space-xl);
}
.hero__badge-dot {
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: var(--text-4xl); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}
.hero__title-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: var(--text-lg); color: var(--text-secondary);
    max-width: 600px; margin: 0 auto var(--space-xl); line-height: 1.7;
}
.hero__actions {
    display: flex; flex-direction: column; gap: var(--space-md);
    align-items: center; margin-bottom: var(--space-3xl);
}
.hero__stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg); padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}
.hero__stat { text-align: center; }
.hero__stat-number {
    display: block; font-size: var(--text-2xl); font-weight: 700;
    color: var(--text); font-family: 'JetBrains Mono', monospace;
}
.hero__stat-label {
    font-size: var(--text-xs); color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-sm); padding: 0.75rem 1.75rem;
    font-weight: 600; font-size: var(--text-base);
    border-radius: var(--radius-lg); cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap; min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; box-shadow: 0 4px 16px var(--primary-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { background: var(--bg-card); border-color: var(--primary); color: var(--primary-light); }
.btn--full { width: 100%; }

/* ============================================================
   SECTIONS — Generic
   ============================================================ */
.section { padding: var(--space-4xl) 0; position: relative; }
.section__header { text-align: center; margin-bottom: var(--space-3xl); }
.section__tag {
    display: inline-block; font-size: var(--text-sm); font-weight: 600;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}
.section__title { font-size: var(--text-3xl); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.section__subtitle {
    margin-top: var(--space-md); font-size: var(--text-lg);
    color: var(--text-secondary); max-width: 560px;
    margin-left: auto; margin-right: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-elevated); }
.about__grid { display: grid; gap: var(--space-3xl); }

.about__text {
    color: var(--text-secondary); font-size: var(--text-base);
    margin-bottom: var(--space-md); line-height: 1.75;
}

.about__highlights {
    display: flex; flex-direction: column; gap: var(--space-md);
    margin-top: var(--space-xl);
}
.about__highlight {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md); background: var(--bg-card);
    border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.about__highlight-icon { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.about__highlight strong { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.about__highlight span { font-size: var(--text-xs); color: var(--text-tertiary); }

.about__visual {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-xl);
}

/* Photo */
.about__photo-wrap {
    width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: 0 0 40px var(--primary-glow);
}
.about__photo {
    width: 100%; height: 100%; object-fit: cover;
}

/* Formula card */
.about__card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: var(--space-xl);
    width: 100%; max-width: 400px; position: relative; overflow: hidden;
}
.about__card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.about__card-formula { text-align: center; }
.about__card-label {
    display: block; font-size: var(--text-xs); color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-lg);
}
.about__card-formula-img {
    max-width: 100%; height: auto; margin: 0 auto var(--space-md);
    filter: var(--formula-filter);
}
.about__card-name { display: block; font-size: var(--text-sm); color: var(--text-secondary); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { display: grid; gap: var(--space-lg); }

.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: var(--space-xl);
    transition: all var(--duration) var(--ease);
    position: relative; overflow: hidden;
}
.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0; transition: opacity var(--duration) var(--ease);
}
.service-card:hover {
    background: var(--bg-card-hover); border-color: var(--border-light);
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.service-card:hover::after { opacity: 1; }
.service-card--featured {
    border-color: hsl(var(--hue), 85%, 62%, 0.3);
    background: hsl(var(--hue), 85%, 62%, 0.05);
}

.service-card__icon-wrap {
    width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
    background: hsl(var(--hue), 85%, 62%, 0.1);
    border-radius: var(--radius-md); margin-bottom: var(--space-md);
}
.service-card__icon { width: 24px; height: 24px; color: var(--primary); }
.service-card__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-sm); }
.service-card__desc {
    font-size: var(--text-sm); color: var(--text-secondary);
    line-height: 1.7; margin-bottom: var(--space-md);
}

/* Detailed service list */
.service-card__details {
    display: flex; flex-direction: column; gap: var(--space-sm);
}
.service-card__details li {
    display: flex; align-items: flex-start; gap: var(--space-sm);
    font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6;
}
.service-card__details li svg {
    width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px;
}

.service-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.service-card__tags li {
    font-size: var(--text-xs); padding: 0.2rem 0.6rem;
    background: var(--bg-elevated); border-radius: var(--radius-full);
    color: var(--text-tertiary); border: 1px solid var(--border);
}

/* ============================================================
   HOW I WORK
   ============================================================ */
.how-i-work { background: var(--bg-elevated); }
.how-i-work__grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-3xl); }

.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: var(--space-xl);
    position: relative;
}
.step-card__number {
    font-family: 'JetBrains Mono', monospace; font-size: var(--text-3xl);
    font-weight: 700; color: hsl(var(--hue), 85%, 62%, 0.15);
    line-height: 1; margin-bottom: var(--space-sm); display: block;
}
.step-card__icon-wrap {
    width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
    background: hsl(var(--hue), 85%, 62%, 0.1); border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}
.step-card__icon-wrap svg { width: 20px; height: 20px; color: var(--primary); }
.step-card__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-sm); }
.step-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; }

.how-i-work__features { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
.feature-pill {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-full); font-size: var(--text-sm);
    font-weight: 500; color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.feature-pill:hover { border-color: var(--primary); color: var(--text); }
.feature-pill__icon { width: 16px; height: 16px; color: var(--primary); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid { display: grid; gap: var(--space-lg); }
.pricing__grid--two { max-width: 800px; margin: 0 auto; }

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: var(--space-2xl);
    display: flex; flex-direction: column;
    transition: all var(--duration) var(--ease); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured {
    border-color: var(--primary);
    background: hsl(var(--hue), 85%, 62%, 0.05);
    box-shadow: 0 0 40px var(--primary-glow);
}
.pricing-card__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: var(--text-xs); font-weight: 600;
    border-radius: var(--radius-full); white-space: nowrap;
}
.pricing-card__header { margin-bottom: var(--space-lg); }
.pricing-card__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-xs); }
.pricing-card__desc { font-size: var(--text-sm); color: var(--text-tertiary); }

.pricing-card__price {
    display: flex; align-items: baseline; gap: 0.15rem;
    margin-bottom: var(--space-xl); flex-wrap: wrap;
}
.pricing-card__amount {
    font-size: var(--text-4xl); font-weight: 700;
    font-family: 'JetBrains Mono', monospace; color: var(--text);
}
.pricing-card__amount--custom {
    font-size: var(--text-2xl); font-family: 'Inter', sans-serif;
}
.pricing-card__currency { font-size: var(--text-xl); font-weight: 600; color: var(--text-secondary); }
.pricing-card__period { font-size: var(--text-sm); color: var(--text-tertiary); margin-left: var(--space-xs); }

.pricing-card__features {
    display: flex; flex-direction: column; gap: var(--space-sm);
    margin-bottom: var(--space-xl); flex: 1;
}
.pricing-card__features li {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: var(--text-sm); color: var(--text-secondary);
}
.pricing-card__features li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact__methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 500px;
}

.contact-method {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-lg); background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    transition: all var(--duration) var(--ease);
}
.contact-method:hover {
    background: var(--bg-card-hover); border-color: var(--primary);
    transform: translateX(4px);
}
.contact-method__icon-wrap {
    width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
    background: hsl(var(--hue), 85%, 62%, 0.1);
    border-radius: var(--radius-md); flex-shrink: 0;
}
.contact-method__icon { width: 22px; height: 22px; color: var(--primary); }
.contact-method__info strong { display: block; font-size: var(--text-base); font-weight: 600; }
.contact-method__info span { font-size: var(--text-sm); color: var(--text-tertiary); }
.contact-method__arrow {
    width: 18px; height: 18px; color: var(--text-tertiary);
    margin-left: auto; transition: transform var(--duration) var(--ease);
}
.contact-method:hover .contact-method__arrow { transform: translateX(4px); color: var(--primary); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.form-input {
    padding: 0.75rem var(--space-md); background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: var(--text-base); color: var(--text);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    min-height: 48px; -webkit-appearance: none; appearance: none;
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.5rem;
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-elevated); border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__content { display: grid; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer__desc { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: var(--space-md); max-width: 280px; }
.footer__heading {
    font-size: var(--text-sm); font-weight: 600; color: var(--text);
    margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.05em;
}
.footer__links ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a { font-size: var(--text-sm); color: var(--text-tertiary); transition: color var(--duration) var(--ease); }
.footer__links a:hover { color: var(--primary-light); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: var(--space-xl); text-align: center; }
.footer__bottom p { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-on-scroll {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .nav__toggle { display: none; }
    .nav__menu {
        position: static; width: auto; height: auto;
        background: none; flex-direction: row; gap: var(--space-sm);
    }
    .nav__link { font-size: var(--text-sm); }
    .hero__title { font-size: var(--text-5xl); }
    .hero__actions { flex-direction: row; justify-content: center; }
    .about__grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
    .about__photo-wrap { width: 240px; height: 240px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .how-i-work__grid { grid-template-columns: repeat(2, 1fr); }
    .pricing__grid--two { grid-template-columns: repeat(2, 1fr); }
    .contact__methods { max-width: 500px; }
    .footer__content { grid-template-columns: 2fr 1fr 1fr; }
    .section__title { font-size: var(--text-4xl); }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    .container { padding: 0 var(--space-2xl); }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .how-i-work__grid { grid-template-columns: repeat(4, 1fr); }
    .section { padding: var(--space-4xl) 0; }
    .hero__stat-number { font-size: var(--text-3xl); }
}

/* ============================================================
   RESPONSIVE — Large Desktop (1440px+)
   ============================================================ */
@media (min-width: 1440px) {
    :root { --text-5xl: 3.75rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .header, .hero__bg, .nav__toggle, .theme-toggle { display: none; }
    body { color: #000; background: #fff; }
    .section { page-break-inside: avoid; }
}
