/* ==========================================================================
   Tauxera Technologies — main stylesheet
   ========================================================================== */

/* ---------- Color themes ----------
   The active theme is set on <html data-theme="..."> in index.html:
     data-theme="tauxera"  electric blue / silver / black (from the original Tauxera logo)
     data-theme="classic"  original blue / green (also used when the attribute is missing)
   Only colors change between themes. If you switch, also update
   <meta name="theme-color"> in index.html and "theme_color" in site.webmanifest. */

/* Classic theme (default) */
:root {
  --brand-1: #024773;                   /* links, icons, accents on light backgrounds */
  --brand-1-rgb: 2, 71, 115;
  --accent: #72C725;                    /* primary buttons, highlights */
  --accent-rgb: 114, 199, 37;
  --accent-hover: #82D63A;
  --accent-dark: #4E9A12;               /* accent text on light backgrounds */
  --accent-light: #8FDB45;              /* accent text on dark backgrounds */
  --accent-light-rgb: 143, 219, 69;
  --glow-rgb: 26, 123, 192;             /* blurred orbs in dark sections */

  --dark-900: #031B2E;
  --dark-900-rgb: 3, 27, 46;
  --dark-800: #06263F;
  --dark-700: #0A3354;

  --grad: linear-gradient(135deg, #024773 0%, #72C725 100%);
  --grad-text: linear-gradient(135deg, #024773 0%, #4E9A12 100%);
  --grad-text-dark: linear-gradient(135deg, #4FA3E0 0%, #8FDB45 100%);
  --grad-strong: linear-gradient(135deg, #024773 0%, #3E8A10 100%); /* AA contrast behind white text */
  --grad-cta: linear-gradient(135deg, #024773 0%, #03304F 100%);
  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E9A12' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Tauxera theme */
:root[data-theme="tauxera"] {
  --brand-1: #0A4FD1;
  --brand-1-rgb: 10, 79, 209;
  --accent: #2E9BFF;
  --accent-rgb: 46, 155, 255;
  --accent-hover: #5AB2FF;
  --accent-dark: #0A5FC4;
  --accent-light: #6CC0FF;
  --accent-light-rgb: 108, 192, 255;
  --glow-rgb: 0, 110, 255;

  --dark-900: #05070C;
  --dark-900-rgb: 5, 7, 12;
  --dark-800: #0A0F1A;
  --dark-700: #111A2B;

  --grad: linear-gradient(135deg, #0A4FD1 0%, #2E9BFF 100%);
  --grad-text: linear-gradient(135deg, #0A3FA8 0%, #0A5FC4 100%);
  --grad-text-dark: linear-gradient(135deg, #E2E8F0 0%, #6CC0FF 100%);
  --grad-strong: linear-gradient(135deg, #0A3FA8 0%, #0A5FC4 100%);
  --grad-cta: linear-gradient(135deg, #0B2A6B 0%, #05070C 100%);
  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5FC4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --surface: #F8FAFC;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --on-dark: #CBD5E1;
  --error: #DC2626;
  --success: #059669;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(var(--brand-1-rgb), .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --header-h: 72px;
  --section-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-1); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.surface { background: var(--surface); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-1);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Dark sections ---------- */
.dark { background: var(--dark-900); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .grad-text { background-image: var(--grad-text-dark); }
.dark .eyebrow { color: var(--accent-light); }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: rgba(var(--glow-rgb), .45); top: -160px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: rgba(var(--accent-rgb), .22); bottom: -140px; left: -100px; }
.orb-3 { width: 460px; height: 460px; background: rgba(var(--glow-rgb), .32); top: -180px; left: 50%; transform: translateX(-50%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--dark-900); box-shadow: 0 8px 24px -8px rgba(var(--accent-rgb), .55); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), .65); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--dark-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.ic, svg use { stroke: currentColor; }
svg:not([fill]) { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(var(--dark-900-rgb), .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(var(--glow-rgb), .45)); }
.brand-mark img { width: 42px; height: 42px; }
.brand em { font-style: normal; font-weight: 500; color: var(--on-dark); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 6px; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--on-dark); font-size: .95rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav ul a:hover { color: #fff; }
.nav ul a.active { color: #fff; background: rgba(255, 255, 255, .08); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(32px, 8vw, 96px)) 0 clamp(56px, 10vw, 120px); min-height: min(100vh, 900px); min-height: min(100svh, 900px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark); max-width: 560px; margin-bottom: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; }
.hero-tags li { position: relative; padding-left: 16px; font-size: .9rem; color: #94A3B8; }
.hero-tags li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--grad); }

.hero-visual { position: relative; height: 440px; }
.float-card {
  position: absolute; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: float 7s ease-in-out infinite;
}
.card-browser { width: 78%; top: 20px; left: 4%; overflow: hidden; }
.fc-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fc-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.fc-bar i:first-child { background: #F87171; }
.fc-bar i:nth-child(2) { background: #FBBF24; }
.fc-bar i:nth-child(3) { background: #34D399; }
.fc-body { padding: 22px; display: grid; gap: 10px; }
.sk { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.sk-title { width: 40%; height: 14px; background: rgba(255, 255, 255, .3); }
.sk-grad { width: 75%; height: 22px; background: var(--grad); }
.sk-short { width: 60%; }
.fc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sk-box { height: 64px; border-radius: 10px; background: rgba(255, 255, 255, .08); }

.card-design { width: 190px; right: 0; top: 150px; padding: 16px; animation-delay: -2s; }
.swatches { display: flex; gap: 6px; margin-bottom: 12px; }
.swatches i { flex: 1; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); }
.design-shape { height: 80px; border-radius: 12px; background: radial-gradient(circle at 30% 30%, var(--accent-light), transparent 60%), var(--grad); margin-bottom: 12px; }
.fc-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #E2E8F0; font-weight: 500; }
.fc-label .ic { width: 14px; height: 14px; color: #34D399; }

.card-sheet { width: 230px; left: 14%; bottom: 0; padding: 16px; animation-delay: -4s; }
.sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; }
.sheet i { height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.sheet i.hl { background: rgba(var(--accent-rgb), .6); }

.card-code { right: 10%; bottom: 60px; padding: 10px 16px; animation-delay: -1s; }
.card-code code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85rem; color: var(--accent-light); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.lead-dark { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.highlights { display: grid; gap: 12px; }
.highlights li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.highlights li:hover { transform: translateX(6px); border-color: rgba(var(--brand-1-rgb), .35); box-shadow: var(--shadow); }
.hl-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--brand-1-rgb), .08); color: var(--brand-1); }
.hl-ic svg { width: 20px; height: 20px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card > p { color: var(--muted); font-size: .95rem; }
.svc-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-strong); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 24px -10px rgba(var(--brand-1-rgb), .7); }
.svc-ic svg { width: 26px; height: 26px; }
.ticks { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ticks li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .15) var(--tick-icon) center / 9px no-repeat;
}

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.why-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); border-color: rgba(var(--accent-light-rgb), .35); }
.why-card p { margin: 0; color: #94A3B8; }
.why-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-light); background: linear-gradient(135deg, rgba(var(--brand-1-rgb), .25), rgba(var(--accent-rgb), .15)); border: 1px solid rgba(var(--accent-light-rgb), .2); }
.why-ic svg { width: 22px; height: 22px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 40px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: .92rem; font-weight: 500; color: var(--text); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--brand-1); color: var(--brand-1); }
.filter.active { background: var(--dark-900); border-color: var(--dark-900); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project[hidden] { display: none; }
.project-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project-img img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-body p { color: var(--muted); font-size: .94rem; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-1); background: rgba(var(--brand-1-rgb), .08); padding: 5px 10px; border-radius: 6px; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tags li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.link-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.link-btn .ic { width: 16px; height: 16px; color: var(--brand-1); transition: transform .2s var(--ease); }
.link-btn:hover { color: var(--brand-1); }
.link-btn:hover .ic { transform: translateX(4px); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--brand-1), var(--accent)); opacity: .35; }
.step { position: relative; text-align: center; }
.step-num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--white); border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--brand-1);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), color .25s;
}
.step:hover .step-num { transform: scale(1.08); color: var(--accent); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Technologies ---------- */
.tech-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-group { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--white)); }
.tech-group h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  padding: 10px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.pills li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--brand-1); }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 0 var(--section-y); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px); border-radius: 28px;
  background: var(--grad-cta); color: #fff; text-align: center;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; background: rgba(var(--accent-rgb), .16); }
.cta::after { background: rgba(255, 255, 255, .08); }
.cta::before { width: 360px; height: 360px; top: -180px; right: -80px; }
.cta::after { width: 260px; height: 260px; bottom: -150px; left: -60px; }
.cta h2 { color: #fff; max-width: 760px; margin: 0 auto 18px; }
.cta p { max-width: 640px; margin: 0 auto 32px; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }

/* ---------- Contact ---------- */
#contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; }
.info-list { display: grid; gap: 14px; margin-top: 32px; }
.info-list li { display: flex; align-items: center; gap: 16px; }
.info-list div { display: flex; flex-direction: column; line-height: 1.4; }
.info-list strong { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.info-list span:not(.info-ic) { color: var(--muted); font-size: .95rem; }
.info-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--brand-1-rgb), .08); color: var(--brand-1); }
.info-ic svg { width: 22px; height: 22px; }

.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 18px; min-height: 44px;
  padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cc-ic { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.cc-ic svg { width: 28px; height: 28px; }
.cc-whatsapp .cc-ic { background: #25D366; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.cc-facebook .cc-ic { background: #1877F2; box-shadow: 0 10px 24px -10px rgba(24, 119, 242, .8); }
.cc-whatsapp:hover { border-color: rgba(37, 211, 102, .5); }
.cc-facebook:hover { border-color: rgba(24, 119, 242, .5); }
.cc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.cc-text strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.cc-text span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.cc-arrow { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--brand-1); transition: transform .2s var(--ease); }
.contact-card:hover .cc-arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand p { max-width: 360px; margin: 16px 0 0; color: #94A3B8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { display: inline-block; padding: 4px 0; color: var(--on-dark); font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--on-dark); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: color .2s, background-color .2s, border-color .2s; }
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(var(--accent-light-rgb), .4); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #94A3B8; }

/* ---------- Floating WhatsApp + back to top ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 91;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 24px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-strong); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Custom cursor (mouse/trackpad only, created by js/main.js) ---------- */
html.has-cursor, html.has-cursor * { cursor: none; }
html.has-cursor :is(input, textarea, select, [contenteditable]) { cursor: auto; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor-dot { mix-blend-mode: difference; } /* stays visible on dark, light and accent backgrounds */
.cursor.is-visible > * { opacity: 1; }
.cursor.is-native > * { opacity: 0; }
.cursor-dot::before, .cursor-ring::before {
  content: ""; position: absolute; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.cursor-dot::before { width: 8px; height: 8px; background: #fff; }
.cursor-ring::before { width: 36px; height: 36px; border: 1.5px solid rgba(var(--accent-rgb), .55); }
.cursor.is-hover .cursor-ring::before { transform: translate(-50%, -50%) scale(1.5); background: rgba(var(--accent-rgb), .14); border-color: var(--accent); }
.cursor.is-down .cursor-ring::before { transform: translate(-50%, -50%) scale(.8); }
.cursor.is-hover.is-down .cursor-ring::before { transform: translate(-50%, -50%) scale(1.25); }
.cursor.is-down .cursor-dot::before { transform: translate(-50%, -50%) scale(.7); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: rgba(var(--dark-900-rgb), .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .nav-cta { width: 100%; }
  .site-header.menu-open { background: rgba(var(--dark-900-rgb), .97); }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-groups { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .services-grid, .why-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }

  /* vertical timeline */
  .process { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .process::before { display: block; top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-1), var(--accent)); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; text-align: left; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; margin: 10px 0 4px; }

  .footer-grid { flex-direction: column; }
}

@media (max-width: 575px) {
  :root { --section-y: 56px; --header-h: 64px; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1rem; }

  .brand { font-size: 1rem; }
  .brand em { display: none; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn-row .btn { flex: 1 1 100%; }

  .hero .lead { margin-bottom: 28px; }
  .hero-tags { gap: 6px 14px; margin-top: 28px; }
  .hero-grid { gap: 36px; }
  .hero-visual { height: 260px; }
  .card-browser { width: 86%; left: 0; top: 0; }
  .card-design { width: 40%; top: 96px; padding: 12px; }
  .design-shape { height: 44px; margin-bottom: 8px; }
  .swatches i { height: 16px; }
  .card-sheet { width: 55%; left: 6%; padding: 12px; }
  .card-code { display: none; }
  .fc-body { padding: 14px; gap: 8px; }
  .sk-box { height: 36px; }
  .fc-label { font-size: .72rem; }

  .lead-dark { font-size: 1.05rem; }
  .highlights li { padding: 14px 16px; }
  .service-card, .why-card { padding: 24px 22px; }
  .tech-group { padding: 22px; }
  .project-body { padding: 20px; }

  .filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity;
    margin: -8px calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; min-height: 44px; scroll-snap-align: start; }

  .cta { border-radius: 20px; padding: 40px 22px; }
  .cta p { font-size: 1rem; margin-bottom: 26px; }

  .contact-card { padding: 18px; gap: 14px; }
  .cc-ic { width: 48px; height: 48px; }
  .cc-ic svg { width: 24px; height: 24px; }
  .cc-text strong { font-size: 1rem; }

  .site-footer { padding-top: 48px; }
  .footer-links { gap: 4px 24px; }

  .wa-float { right: 16px; width: 52px; height: 52px; }
  .to-top { right: 20px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand { font-size: .95rem; gap: 8px; }
  .brand-mark, .brand-mark img { width: 36px; height: 36px; }
  .hero-visual { height: 220px; }
  .card-design { display: none; }
  .card-browser { width: 100%; }
  .card-sheet { width: 62%; left: auto; right: 0; }
  .btn { padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
