/* ==========================================================================
   Foxstone Industries — Modern Design System
   Inspired by apple.com/siri: dark base, gradient accents, scroll animations
   ========================================================================== */

@layer reset, base, layout, components, animations, utilities;

/* — Design Tokens -------------------------------------------------------- */

:root {
  /* Backgrounds */
  --bg:             #000000;
  --bg-elevated:    #0a0a0a;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.08);
  --bg-glass:       rgba(22, 22, 23, 0.72);

  /* Text */
  --text:           #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary:  #6e6e73;

  /* Brand-evolved gradient: blue → purple → pink (nods to original burgundy warmth) */
  --accent-blue:    #2563eb;
  --accent-purple:  #7c3aed;
  --accent-pink:    #db2777;
  --gradient:       linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  --gradient-text:  linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  --gradient-subtle:linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12), rgba(219,39,119,0.12));

  /* Borders */
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.16);

  /* Typography */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

  /* Spacing scale (8px base) */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   2rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  /* Sizing */
  --container:  1200px;
  --nav-height: 5.5rem;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --duration:   0.6s;

  /* Radius */
  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
}


/* — Reset ---------------------------------------------------------------- */

@layer reset {
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
  }

  img, picture, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
}


/* — Base Typography ------------------------------------------------------ */

@layer base {
  h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
  }

  h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
  }

  h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
  }

  p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    max-width: 65ch;
  }

  .lead {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.6;
    color: var(--text-secondary);
  }

  .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-purple);
    margin-bottom: var(--space-md);
  }
}


/* — Layout --------------------------------------------------------------- */

@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }

  section {
    padding: var(--space-3xl) 0;
    position: relative;
  }

  /* Alternating dark/darker rhythm */
  .section--alt {
    background: var(--bg-elevated);
  }
}


/* — Navigation ----------------------------------------------------------- */

@layer components {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  }

  /* Translucent glass once user scrolls past the hero */
  .nav--scrolled {
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 var(--border);
  }

  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
  }

  .nav__logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav__logo-img {
    height: 4.5rem;
    width: auto;
    margin-top: 0.25rem;
    transition: transform 0.3s var(--ease-out);
  }

  .nav__logo:hover .nav__logo-img {
    transform: scale(1.08);
  }

  .nav__links {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
  }

  .nav__item {
    position: relative;
  }

  .nav__item > a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
  }

  .nav__item > a:hover,
  .nav__item > a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }

  /* Dropdown */
  .nav__dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 14rem;
    padding: var(--space-sm);
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    translate: 0 8px;
    transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav__item:hover > .nav__dropdown,
  .nav__item:focus-within > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav__dropdown a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav__dropdown a:hover,
  .nav__dropdown a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  /* Mobile menu toggle */
  .nav__toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
  }

  .nav__toggle:hover { background: rgba(255,255,255,0.06); }

  .nav__toggle span {
    display: block;
    width: 1.125rem;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    position: relative;
    transition: background 0.3s ease;
  }

  .nav__toggle span::before,
  .nav__toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text);
    border-radius: 1px;
    left: 0;
    transition: transform 0.3s var(--ease-out);
  }

  .nav__toggle span::before { transform: translateY(-6px); }
  .nav__toggle span::after  { transform: translateY(6px); }

  .nav__toggle[aria-expanded="true"] span { background: transparent; }
  .nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }
}


/* — Hero ----------------------------------------------------------------- */

@layer components {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) var(--space-lg);
  }

  /* Ambient gradient orbs for Siri-like atmosphere */
  .hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
  }

  .hero__glow--1 {
    width: min(45vw, 600px);
    height: min(45vw, 600px);
    background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
    top: -8%;
    right: -5%;
    animation: glow-drift-1 18s ease-in-out infinite;
  }

  .hero__glow--2 {
    width: min(40vw, 500px);
    height: min(40vw, 500px);
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    bottom: 0%;
    left: 5%;
    animation: glow-drift-2 22s ease-in-out infinite;
  }

  .hero__glow--3 {
    width: min(30vw, 400px);
    height: min(30vw, 400px);
    background: radial-gradient(circle, rgba(219,39,119,0.2) 0%, transparent 70%);
    top: 35%;
    left: 55%;
    animation: glow-drift-3 25s ease-in-out infinite;
  }

  .hero__content {
    position: relative;
    z-index: 1;
    max-width: 52rem;
  }

  .hero__title {
    margin-bottom: var(--space-lg);
  }

  .hero__tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* — Buttons -------------------------------------------------------------- */

@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100vw;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }

  .btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 24px rgba(124,58,237,0.25);
  }

  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 32px rgba(124,58,237,0.4);
  }

  .btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
  }

  .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
  }
}


/* — About Section -------------------------------------------------------- */

@layer components {
  .about__text {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
  }

  .about__text p {
    max-width: none;
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    line-height: 1.65;
    color: var(--text-secondary);
  }

  .about__text p + p {
    margin-top: var(--space-lg);
  }
}


/* — Services Section ----------------------------------------------------- */

@layer components {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
  }

  /* Gradient top-edge glow on hover */
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
  }

  .service-card:hover::before {
    opacity: 1;
  }

  .service-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
  }

  .service-card h3 {
    margin-bottom: var(--space-md);
    color: var(--text);
  }

  .service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
  }
}


/* — Plans Section -------------------------------------------------------- */

@layer components {
  .plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    text-align: center;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .plan-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
  }

  /* Purple accent ring on the featured plan */
  .plan-card--featured {
    border-color: rgba(124,58,237,0.3);
  }

  .plan-card--featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .plan-card h3 {
    color: var(--text);
    margin-bottom: var(--space-sm);
  }

  .plan-card__price {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
  }

  .plan-card__image {
    width: 100%;
    max-width: 16rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    transition: transform 0.4s var(--ease-out);
  }

  .plan-card:hover .plan-card__image {
    transform: scale(1.03);
  }

  .plan-card__image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .plans-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
  }

  .plans-cta {
    text-align: center;
    margin-top: var(--space-lg);
  }
}


/* — Featured Sites ------------------------------------------------------- */

@layer components {
  .featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
  }

  .featured-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
  }

  .featured-card__image {
    width: 100%;
    max-width: 10rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    transition: transform 0.4s var(--ease-out);
  }

  .featured-card:hover .featured-card__image {
    transform: scale(1.05);
  }

  .featured-card__image img {
    width: 100%;
    height: auto;
  }

  .featured-card span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
  }
}


/* — CTA / Continuity Section --------------------------------------------- */

@layer components {
  .cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  /* Gradient backdrop for visual punch */
  .cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0.6;
    pointer-events: none;
  }

  .cta-section .container {
    position: relative;
    z-index: 1;
  }

  .cta-section h2 {
    margin-bottom: var(--space-md);
  }

  .cta-section p {
    max-width: 40rem;
    margin: 0 auto var(--space-lg);
  }
}


/* — Calendar Widget ------------------------------------------------------ */

@layer components {
  .calendar-widget {
    display: inline-block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
  }

  .calendar-widget iframe {
    display: block;
    border: none;
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.7;
  }
}


/* — Footer --------------------------------------------------------------- */

@layer components {
  .site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-3xl);
  }

  .footer-col h4 {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  .footer-col a {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
  }

  .footer-col a:hover { color: var(--text); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
  }

  .footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
  }

  .footer-bottom a {
    color: var(--text-tertiary);
    transition: color 0.2s ease;
  }

  .footer-bottom a:hover { color: var(--text); }

  .footer-legal {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8125rem;
  }
}


/* — Scroll Animations ---------------------------------------------------- */

@layer animations {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
  }

  .reveal--scale {
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition: opacity var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
  }

  .reveal.is-visible,
  .reveal--scale.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Stagger children inside a grid */
  .stagger > .reveal:nth-child(1) { transition-delay: 0s; }
  .stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
  .stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
  .stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

  .stagger > .reveal--scale:nth-child(1) { transition-delay: 0s; }
  .stagger > .reveal--scale:nth-child(2) { transition-delay: 0.1s; }
  .stagger > .reveal--scale:nth-child(3) { transition-delay: 0.2s; }
  .stagger > .reveal--scale:nth-child(4) { transition-delay: 0.3s; }

  /* Hero glow keyframes */
  @keyframes glow-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-30px, 20px) scale(1.08); }
    66%      { transform: translate(15px, -15px) scale(0.95); }
  }

  @keyframes glow-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(25px, -30px) scale(1.1); }
    66%      { transform: translate(-20px, 10px) scale(0.92); }
  }

  @keyframes glow-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-35px, 25px) scale(1.12); }
  }

  /* Hero entrance */
  .hero__content {
    animation: hero-entrance 1.2s var(--ease-out) forwards;
  }

  @keyframes hero-entrance {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* — Utilities ------------------------------------------------------------ */

@layer utilities {
  .text-center { text-align: center; }
  .mx-auto    { margin-left: auto; margin-right: auto; }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
  }
}


/* — Responsive ----------------------------------------------------------- */

/* Mobile menu (below 768px) */
@media (max-width: 47.9375rem) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__item > a {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }

  /* Stack dropdowns inline on mobile */
  .nav__dropdown {
    position: static;
    transform: none;
    translate: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-md);
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__item.is-expanded > .nav__dropdown {
    max-height: 30rem;
  }

  .nav__toggle {
    display: flex;
  }

  .services-grid { grid-template-columns: 1fr; }
  .plans-grid    { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
}

/* Tablet (768px+) */
@media (min-width: 48rem) {
  .services-grid { grid-template-columns: 1fr; }
  .plans-grid    { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  section {
    padding: var(--space-4xl) 0;
  }
}


/* — Accessibility -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal--scale {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}


/* ==========================================================================
   Interior Page Components
   ========================================================================== */

/* — Page Hero (shorter banner for interior pages) ------------------------ */

@layer components {
  .page-hero {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0.5;
    pointer-events: none;
  }

  .page-hero .container {
    position: relative;
    z-index: 1;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: var(--space-md);
  }

  .page-hero p {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.25rem);
  }
}


/* — Tech / Feature Grid -------------------------------------------------- */

@layer components {
  .tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .tech-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  }

  .tech-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
  }

  .tech-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .tech-card h3 {
    color: var(--text);
    margin-bottom: var(--space-sm);
  }

  .tech-card p {
    color: var(--text-secondary);
    line-height: 1.7;
  }

  .tech-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  .tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 100vw;
    white-space: nowrap;
  }

  /* Content section for interior pages */
  .content-section h2 {
    margin-bottom: var(--space-lg);
  }

  .content-section h2 + p {
    margin-bottom: var(--space-xl);
  }
}

@media (min-width: 48rem) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* — FAQ Accordion -------------------------------------------------------- */

@layer components {
  .faq-list {
    max-width: 50rem;
    margin: 0 auto;
    display: grid;
    gap: 1px;
  }

  .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease;
  }

  .faq-item:hover {
    border-color: var(--border-hover);
  }

  .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    transition: background 0.2s ease;
  }

  .faq-item summary::-webkit-details-marker { display: none; }

  .faq-item summary:hover {
    background: var(--bg-card-hover);
  }

  .faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
  }

  .faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-purple);
  }

  .faq-item__body {
    padding: 0 var(--space-xl) var(--space-lg);
  }

  .faq-item__body p {
    color: var(--text-secondary);
    line-height: 1.7;
  }

  .faq-item__body p + p {
    margin-top: var(--space-md);
  }

  .faq-group {
    margin-bottom: var(--space-xl);
  }

  .faq-group__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: var(--space-md);
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
  }
}


/* — Services Overview Grid ----------------------------------------------- */

@layer components {
  .services-overview-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
  }

  .svc-overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
  }

  .svc-overview-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
  }

  .svc-overview-card__icon {
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
  }

  .svc-overview-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
  }

  .svc-overview-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
  }

  .svc-overview-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    flex: 1;
  }

  .svc-overview-card__list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 2;
    font-size: 0.9375rem;
  }

  .svc-overview-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
  }

  .svc-overview-card__link {
    color: var(--accent-purple);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
  }

  .svc-overview-card__link:hover {
    color: var(--accent-blue);
  }
}

@media (min-width: 48rem) {
  .services-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* — Process Steps -------------------------------------------------------- */

@layer components {
  .process-steps {
    max-width: 46rem;
    margin: 0 auto;
    display: grid;
    gap: var(--space-lg);
  }

  .process-step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease;
  }

  .process-step:hover {
    border-color: var(--border-hover);
  }

  .process-step__number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 3rem;
  }

  .process-step__content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
  }

  .process-step__content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
  }
}


/* — Modern Forms --------------------------------------------------------- */

@layer components {
  .modern-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
  }

  .modern-form legend {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text);
    padding: 0 var(--space-sm);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
  }

  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(191, 90, 242, 0.15);
  }

  .form-group input::placeholder {
    color: var(--text-tertiary);
  }

  .form-group select {
    cursor: pointer;
  }

  .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(191, 90, 242, 0.15);
  }
}

@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr !important;
  }
}
