/* ============================================================
   ObjectCrafts — Design System & Styles
   Full rewrite — @layer architecture
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

@layer reset, tokens, base, layout, components, sections, pages, utilities, responsive;

/* ============================================================
   RESET
   ============================================================ */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

  body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

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

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

  ul, ol {
    list-style: none;
  }

  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  p {
    overflow-wrap: break-word;
  }
}

/* ============================================================
   TOKENS (Design Variables)
   ============================================================ */
@layer tokens {
  :root {
    /* Colors — Primary */
    --primary: #0A0F1E;
    --primary-800: #0D1117;
    --primary-700: #111827;
    --primary-600: #1F2937;

    /* Colors — Accent */
    --accent: #4F6EF7;
    --accent-hover: #3B5CE4;
    --accent-dark: #3A4FD4;
    --accent-violet: #7C3AED;
    --accent-glow: rgba(79, 110, 247, 0.35);
    --accent-glow-sm: rgba(79, 110, 247, 0.15);
    --gradient-accent: linear-gradient(135deg, #4F6EF7, #7C3AED);

    /* Colors — Surface */
    --surface: #F8F9FC;
    --surface-white: #FFFFFF;
    --surface-elevated: #FFFFFF;

    /* Colors — Text */
    --text-dark: #1A1A2E;
    --text-body: #374151;
    --text-light: #E2E8F0;
    --text-light-muted: rgba(226, 232, 240, 0.7);
    --muted: #6B7280;
    --muted-light: #9CA3AF;

    /* Colors — Border */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* Colors — Glass */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.25);

    /* Sizing */
    --max-width: 1240px;
    --header-height: 130px;

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 4px 24px rgba(79, 110, 247, 0.25);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* ============================================================
   BASE (Typography, body, global styles)
   ============================================================ */
@layer base {
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--surface-white);
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }

  h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
  }

  h4 {
    font-size: 1.15rem;
    font-weight: 600;
  }

  p {
    color: var(--text-body);
    line-height: 1.75;
  }

  ::selection {
    background: var(--accent);
    color: white;
  }
}

/* ============================================================
   LAYOUT (Container, sections, grid)
   ============================================================ */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
  }

  .section {
    padding: 100px 0;
  }

  .section--surface {
    background: var(--surface);
  }

  .section--dark {
    background: var(--primary);
    color: var(--text-light);
  }

  .section--dark h2,
  .section--dark h3 {
    color: var(--text-light);
  }

  .section--dark p {
    color: var(--text-light-muted);
  }
}

/* ============================================================
   COMPONENTS (Buttons, labels, cards, forms, etc.)
   ============================================================ */
@layer components {
  /* ---------- Section Labels & Titles ---------- */
  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
  }

  .section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }

  .section-label--light {
    color: rgba(79, 110, 247, 0.9);
  }

  .section-label--light::before {
    background: rgba(79, 110, 247, 0.6);
  }

  .section-title {
    margin-bottom: 20px;
  }

  .section-desc {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
  }

  .section-header .section-desc {
    margin: 0 auto;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-xs);
  }

  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
  }

  .btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
  }

  .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
  }

  .btn-outline--light {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
  }

  .btn-outline--light:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.08);
  }

  .btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 14px 16px;
  }

  .btn-ghost:hover {
    background: var(--accent-glow-sm);
  }

  .btn-lg {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: var(--radius);
  }

  .btn-sm {
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
  }

  .btn:hover svg {
    transform: translateX(3px);
  }

  .btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* ---------- Cards ---------- */
  .card {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
  }

  .card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--border);
  }

  .glass-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
  }

  .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
  }

  .glass-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-6px);
    border-color: rgba(79, 110, 247, 0.15);
  }

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

  .card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .card-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
  }

  .card-link:hover {
    gap: 10px;
  }

  .card-link svg {
    width: 16px;
    height: 16px;
  }

  /* ---------- Forms ---------- */
  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-white);
    transition: all var(--transition);
    outline: none;
  }

  .form-input:focus,
  .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow-sm);
  }

  .form-input::placeholder,
  .form-textarea::placeholder {
    color: var(--muted-light);
  }

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

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-error {
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    display: none;
  }

  .form-group.error .form-input,
  .form-group.error .form-textarea {
    border-color: #EF4444;
  }

  .form-group.error .form-error {
    display: block;
  }

  /* ---------- Clients Logo Strip ---------- */
  .clients-strip {
    padding: 60px 0;
  }

  .clients-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
  }

  .client-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all var(--transition);
  }

  .client-logo:hover {
    filter: grayscale(0%) opacity(1);
  }

  /* ---------- Social Icons ---------- */
  .social-links {
    display: flex;
    gap: 12px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 110, 247, 0.08);
    color: var(--accent);
    transition: all var(--transition);
  }

  .social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  /* ---------- Toast / Notification ---------- */
  .toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--text-dark);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.4s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }

  .toast.show {
    transform: translateX(-50%) translateY(0);
  }

  .toast--success {
    background: #059669;
  }

  .toast--error {
    background: #DC2626;
  }
}

/* ============================================================
   SECTIONS (Header, Footer, Hero, Stats, FAQ, etc.)
   ============================================================ */
@layer sections {
  /* ---------- Header ---------- */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: var(--header-height);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
  }

  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-xs);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .logo img {
    height: 112px;
    width: auto;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light-muted);
    transition: color var(--transition);
    border-radius: var(--radius-sm);
  }

  .site-header.scrolled .nav-link {
    color: var(--muted);
  }

  .nav-link:hover,
  .nav-link.active {
    color: white;
  }

  .site-header.scrolled .nav-link:hover,
  .site-header.scrolled .nav-link.active {
    color: var(--text-dark);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }

  .header-cta {
    padding: 10px 24px;
    font-size: 14px;
  }

  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1010;
  }

  .hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition);
  }

  .site-header.scrolled .hamburger-line {
    background: var(--text-dark);
  }

  /* Mobile Drawer */
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
  }

  .drawer-header .logo img {
    height: 48px;
  }

  .drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all var(--transition-fast);
  }

  .drawer-close:hover {
    background: var(--surface);
    color: var(--text-dark);
  }

  .drawer-close svg {
    width: 20px;
    height: 20px;
  }

  .drawer-nav {
    padding: 16px;
    flex: 1;
  }

  .drawer-nav li {
    margin-bottom: 4px;
  }

  .drawer-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }

  .drawer-nav a:hover,
  .drawer-nav a.active {
    background: var(--surface);
    color: var(--accent);
  }

  .drawer-cta {
    margin: 16px;
    text-align: center;
  }

  .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
  }

  .drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
    padding: 160px 0 100px;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
  }

  .hero-orb--1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
  }

  .hero-orb--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-violet);
    bottom: -100px;
    left: -50px;
    animation-delay: -4s;
  }

  .hero-orb--3 {
    width: 300px;
    height: 300px;
    background: #06B6D4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
    opacity: 0.25;
  }

  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
  }

  .hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
  }

  .hero .section-label {
    color: rgba(79, 110, 247, 0.9);
  }

  .hero .section-label::before {
    background: rgba(79, 110, 247, 0.6);
  }

  .hero h1 {
    color: white;
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
  }

  .hero-body {
    color: var(--text-light-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
  }

  /* ---------- Page Hero (inner pages) ---------- */
  .page-hero {
    background: var(--primary);
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    top: -200px;
    right: -100px;
  }

  .page-hero .section-label {
    color: rgba(79, 110, 247, 0.9);
  }

  .page-hero .section-label::before {
    background: rgba(79, 110, 247, 0.6);
  }

  .page-hero h1 {
    color: white;
    margin-bottom: 16px;
  }

  .page-hero p {
    color: var(--text-light-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
  }

  /* ---------- Stats Bar ---------- */
  .stats-bar {
    background: var(--surface);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
  }

  .stat-item {
    padding: 8px 0;
  }

  .stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
  }

  /* ---------- FAQ ---------- */
  .faq-list {
    max-width: 780px;
    margin: 0 auto;
  }

  .faq-item {
    border-bottom: 1px solid var(--border-light);
  }

  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
  }

  .faq-question:hover {
    color: var(--accent);
  }

  .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--muted);
    transition: transform var(--transition), color var(--transition);
  }

  .faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
  }

  .faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
  }

  .faq-item.open .faq-answer-wrapper {
    grid-template-rows: 1fr;
  }

  .faq-answer {
    overflow: hidden;
  }

  .faq-answer p {
    padding-bottom: 24px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* ---------- CTA Section ---------- */
  .cta-section {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta-section h2 {
    color: white;
    margin-bottom: 16px;
    position: relative;
  }

  .cta-section p {
    color: var(--text-light-muted);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
  }

  .cta-section .btn {
    position: relative;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--primary);
    color: var(--text-light-muted);
    padding: 80px 0 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-brand .logo {
    margin-bottom: 16px;
  }

  .footer-brand .logo img {
    height: 104px;
  }

  .footer-tagline {
    font-size: 14px;
    color: var(--text-light-muted);
    margin-bottom: 16px;
    line-height: 1.7;
  }

  .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light-muted);
    margin-bottom: 8px;
    transition: color var(--transition);
  }

  .footer-contact-item:hover {
    color: white;
  }

  .footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
  }

  .footer-social {
    margin-top: 20px;
  }

  .footer-social .social-link {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light-muted);
  }

  .footer-social .social-link:hover {
    background: var(--accent);
    color: white;
  }

  .footer-col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 14px;
    color: var(--text-light-muted);
    transition: color var(--transition);
  }

  .footer-links a:hover {
    color: white;
  }

  .footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.4);
  }

  /* ---------- WhatsApp Float Button ---------- */
  .whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  .whatsapp-float.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  .whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   PAGES (Page-specific styles)
   ============================================================ */
@layer pages {
  /* ---------- Services Page ---------- */
  .service-detail {
    padding: 80px 0;
  }

  .service-detail + .service-detail {
    border-top: 1px solid var(--border-light);
  }

  .service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .service-detail.even .service-detail-grid {
    direction: rtl;
  }

  .service-detail.even .service-detail-grid > * {
    direction: ltr;
  }

  .service-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }

  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
  }

  .service-content .section-label {
    margin-bottom: 12px;
  }

  .service-content h2 {
    margin-bottom: 16px;
  }

  .service-content p {
    margin-bottom: 24px;
  }

  .service-highlights {
    margin-bottom: 32px;
  }

  .service-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-body);
  }

  .service-highlights li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ---------- Projects Page ---------- */
  .project-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    color: var(--muted);
    background: white;
    transition: all var(--transition);
  }

  .filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .project-card {
    background: var(--surface-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition);
  }

  .project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--border);
  }

  .project-card-header {
    padding: 32px 28px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    position: relative;
    overflow: hidden;
  }

  .project-card-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(60px);
    opacity: 0.15;
    top: -80px;
    right: -60px;
  }

  .project-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    position: relative;
  }

  .project-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .project-card-header h3 {
    color: white;
    font-size: 1.15rem;
    position: relative;
  }

  .project-card-body {
    padding: 24px 28px 28px;
  }

  .project-card-body p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--accent-glow-sm);
    color: var(--accent);
  }

  .project-card.hidden {
    display: none;
  }

  /* ---------- About Page ---------- */
  .about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .about-visual {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
  }

  .about-visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 10s ease-in-out infinite;
  }

  .about-visual-orb--1 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 20%;
    left: 20%;
    opacity: 0.6;
  }

  .about-visual-orb--2 {
    width: 150px;
    height: 150px;
    background: var(--accent-violet);
    bottom: 20%;
    right: 20%;
    opacity: 0.5;
    animation-delay: -5s;
  }

  .about-visual-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .team-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
  }

  .team-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--border);
  }

  .team-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
  }

  .team-card h4 {
    margin-bottom: 4px;
  }

  .team-role {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
  }

  .value-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .value-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
  }

  .value-icon svg {
    width: 24px;
    height: 24px;
  }

  .value-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px;
  }

  /* ---------- Contact Page ---------- */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
  }

  .contact-info h2 {
    margin-bottom: 12px;
  }

  .contact-info > p {
    color: var(--muted);
    margin-bottom: 32px;
  }

  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
  }

  .contact-card:hover {
    background: var(--surface-white);
    box-shadow: var(--shadow-sm);
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
  }

  .contact-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-card h4 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .contact-card p,
  .contact-card a {
    font-size: 14px;
    color: var(--muted);
  }

  .contact-card a:hover {
    color: var(--accent);
  }

  .contact-form-card {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }

  .contact-form-card h3 {
    margin-bottom: 8px;
  }

  .contact-form-card > p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  /* ---------- Quote Section (Home) ---------- */
  .quote-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
  }

  .quote-info h2 {
    margin-bottom: 12px;
  }

  .quote-info > p {
    color: var(--muted);
    margin-bottom: 24px;
  }

  .quote-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .quote-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-body);
  }

  .quote-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
  }

  .quote-form-card {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }

  .quote-form-card h3 {
    margin-bottom: 8px;
  }

  .quote-form-card > p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  /* ---------- Why Section (Home) ---------- */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .why-card {
    text-align: center;
    padding: 40px 28px;
  }

  .why-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--accent-glow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
  }

  .why-icon svg {
    width: 28px;
    height: 28px;
  }

  .why-card h3 {
    margin-bottom: 12px;
  }

  .why-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ---------- Services Overview Grid (Home) ---------- */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* ---------- Legal Pages (Terms, Privacy) ---------- */
  .legal-content {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.8;
  }

  .legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 48px;
    margin-bottom: 16px;
  }

  .legal-content h2:first-child {
    margin-top: 0;
  }

  .legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 32px;
    margin-bottom: 12px;
  }

  .legal-content p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 1rem;
  }

  .legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
  }

  .legal-content ul li {
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
  }

  .legal-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
  }

  .legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
  }
}

/* ============================================================
   APP SCREENSHOTS CAROUSEL
   ============================================================ */
.app-carousel-section {
  overflow: hidden;
}

.app-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 33.333%;
  padding: 0 8px;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: block;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border, #e2e8f0);
  background: var(--clr-surface, #fff);
  color: var(--clr-text, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.carousel-btn:hover {
  background: var(--clr-accent, #4f6ef7);
  color: #fff;
  border-color: var(--clr-accent, #4f6ef7);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--clr-border, #d1d5db);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--clr-accent, #4f6ef7);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 50%;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    min-width: 100%;
  }

  .carousel-btn {
    display: none;
  }
}

/* ============================================================
   PRO BADGE (Scan PRO AI branding)
   ============================================================ */
.pro-badge {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #3d5a99;
  color: #fff;
  padding: 0.1em 0.4em;
  border-radius: 0.35em;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
  line-height: 1.4;
}

/* ============================================================
   PRICING (Scan PRO AI pricing cards)
   ============================================================ */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    position: relative;
  }

  .pricing-card--featured {
    border: 2px solid var(--clr-accent);
    transform: scale(1.05);
  }

  .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
  }

  .pricing-plan-name {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--clr-text);
  }

  .pricing-price {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-text);
    line-height: 1.1;
    margin-bottom: 4px;
  }

  .pricing-period {
    font-size: 0.875rem;
    color: var(--clr-muted);
    margin-bottom: 32px;
  }

  .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    width: 100%;
    text-align: left;
  }

  .pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
    color: var(--clr-text);
  }

  .pricing-features li:last-child {
    border-bottom: none;
  }

  .pricing-card .btn {
    margin-top: auto;
  }

  @media (max-width: 768px) {
    .pricing-grid {
      grid-template-columns: 1fr;
      max-width: 400px;
    }

    .pricing-card--featured {
      transform: none;
    }
  }

/* ============================================================
   UTILITIES (Animations, helpers)
   ============================================================ */
@layer utilities {
  /* Scroll animations */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .slide-in-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .slide-in-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger delays */
  .stagger-1 { transition-delay: 0.1s; }
  .stagger-2 { transition-delay: 0.2s; }
  .stagger-3 { transition-delay: 0.3s; }
  .stagger-4 { transition-delay: 0.4s; }
  .stagger-5 { transition-delay: 0.5s; }
  .stagger-6 { transition-delay: 0.6s; }

  /* Accessibility */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .fade-in,
    .slide-in-left,
    .slide-in-right {
      opacity: 1;
      transform: none;
    }

    .hero-orb {
      animation: none;
    }
  }

  /* Helpers */
  .text-center { text-align: center; }
  .text-muted { color: var(--muted); }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@layer responsive {
  @media (max-width: 1024px) {
    .services-grid,
    .why-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .service-detail.even .service-detail-grid {
      direction: ltr;
    }

    .about-intro {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .about-visual {
      height: 300px;
    }

    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 40px;
    }
  }

  @media (max-width: 768px) {
    .container {
      padding: 0 20px;
    }

    .section {
      padding: 72px 0;
    }

    /* Header */
    .main-nav,
    .header-cta {
      display: none;
    }

    .hamburger {
      display: flex;
    }

    /* Stats */
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    /* Services */
    .services-grid,
    .why-grid {
      grid-template-columns: 1fr;
    }

    /* Projects */
    .projects-grid {
      grid-template-columns: 1fr;
    }

    /* Team & Values */
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }

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

    /* Contact */
    .contact-grid {
      grid-template-columns: 1fr;
    }

    .quote-section {
      grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }

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

    /* Page hero */
    .page-hero {
      padding: 120px 0 60px;
    }

    .hero {
      padding: 100px 0 80px;
      min-height: auto;
    }
  }

  @media (max-width: 480px) {
    .stats-grid {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .btn-group {
      flex-direction: column;
    }

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

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

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

    .hero h1 {
      font-size: 2rem;
    }

    .project-filters {
      gap: 6px;
    }

    .filter-btn {
      padding: 8px 16px;
      font-size: 13px;
    }

    .contact-form-card,
    .quote-form-card {
      padding: 24px;
    }

    .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
    }

    .whatsapp-float svg {
      width: 24px;
      height: 24px;
    }
  }
}
