/* =============================================================================
   STYLES.CSS — Main stylesheet
   Structure:
   1.  CSS Variables & Themes
   2.  Color Schemes
   3.  Reset & Base
   4.  Typography & Links
   5.  Utilities / Scrollbar / Selection
   6.  Keyframe Animations
   7.  Performance Hints (will-change, transforms)
   8.  Splash / Loader
   9.  Page Layout & Orbs
   10. Reveal Animations
   11. Navigation
   12. Hero Section
   13. Buttons
   14. Section Titles
   15. Tech Stack
   16. Projects
   17. Services
   18. Why Section
   19. Process Section
   20. Tape (Stats)
   21. CTA Section
   22. Footer
   23. Noise Overlay
   24. Cookie Banner & Settings Modal
   25. Privacy Page
   26. iOS WebApp Fixes
   27. Responsive — 900px
   28. Responsive — 768px
   29. Responsive — 480px
   ============================================================================= */


/* =============================================================================
   1. CSS VARIABLES & THEMES
   ============================================================================= */

:root {
  /* Backgrounds */
  --bg-root: #060606;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --bg-input: #111;
  --bg-elevated: #1a1a1a;

  /* Accent (default: orange — overridden by data-color) */
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dim: rgba(249, 115, 22, .10);
  --accent-glow: rgba(249, 115, 22, .20);
  --accent-rgb: 249, 115, 22;

  /* Text */
  --text: #ebebeb;
  --text-dim: #888;
  --text-muted: #555;
  --text-off: #333;

  /* Borders */
  --border: hsla(0, 0%, 100%, .07);
  --border-hover: hsla(0, 0%, 100%, .12);

  /* Status */
  --green: #22c55e;
  --red: #ef4444;

  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Typography */
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Easing presets */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
.theme-light {
  --bg-root: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-input: #e2e8f0;
  --bg-elevated: #ffffff;
  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-dim: rgba(234, 88, 12, .10);
  --accent-glow: rgba(234, 88, 12, .15);
  --accent-rgb: 234, 88, 12;
  --text: #1e293b;
  --text-dim: #64748b;
  --text-muted: #94a3b8;
  --text-off: #e2e8f0;
  --border: rgba(0, 0, 0, .08);
  --border-hover: rgba(0, 0, 0, .12);
  --green: #16a34a;
  --red: #dc2626;
}

/* System preference */
@media (prefers-color-scheme: dark) {
  .theme-system {
    --bg-root: #060606;
    --bg-card: #0e0e0e;
    --bg-card-hover: #141414;
    --bg-input: #111;
    --bg-elevated: #1a1a1a;
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dim: rgba(249, 115, 22, .10);
    --accent-glow: rgba(249, 115, 22, .20);
    --accent-rgb: 249, 115, 22;
    --text: #ebebeb;
    --text-dim: #888;
    --text-muted: #555;
    --text-off: #333;
    --border: hsla(0, 0%, 100%, .07);
    --border-hover: hsla(0, 0%, 100%, .12);
    --green: #22c55e;
    --red: #ef4444;
  }
}

@media (prefers-color-scheme: light) {
  .theme-system {
    --bg-root: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-input: #e2e8f0;
    --bg-elevated: #ffffff;
    --accent: #ea580c;
    --accent-light: #f97316;
    --accent-dim: rgba(234, 88, 12, .10);
    --accent-glow: rgba(234, 88, 12, .15);
    --accent-rgb: 234, 88, 12;
    --text: #1e293b;
    --text-dim: #64748b;
    --text-muted: #94a3b8;
    --text-off: #e2e8f0;
    --border: rgba(0, 0, 0, .08);
    --border-hover: rgba(0, 0, 0, .12);
    --green: #16a34a;
    --red: #dc2626;
  }
}


/* =============================================================================
   2. COLOR SCHEMES (data-color attribute on <body>)
   ============================================================================= */

body[data-color="orange"] {
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dim: rgba(249, 115, 22, .10);
  --accent-glow: rgba(249, 115, 22, .20);
  --accent-rgb: 249, 115, 22;
}

body[data-color="red"] {
  --accent: #ef4444;
  --accent-light: #f87171;
  --accent-dim: rgba(239, 68, 68, .10);
  --accent-glow: rgba(239, 68, 68, .20);
  --accent-rgb: 239, 68, 68;
}

body[data-color="green"] {
  --accent: #22c55e;
  --accent-light: #4ade80;
  --accent-dim: rgba(34, 197, 94, .10);
  --accent-glow: rgba(34, 197, 94, .20);
  --accent-rgb: 34, 197, 94;
}

body[data-color="blue"] {
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dim: rgba(59, 130, 246, .10);
  --accent-glow: rgba(59, 130, 246, .20);
  --accent-rgb: 59, 130, 246;
}

body[data-color="purple"] {
  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-dim: rgba(168, 85, 247, .10);
  --accent-glow: rgba(168, 85, 247, .20);
  --accent-rgb: 168, 85, 247;
}

body[data-color="yellow"] {
  --accent: #eab308;
  --accent-light: #facc15;
  --accent-dim: rgba(234, 179, 8, .10);
  --accent-glow: rgba(234, 179, 8, .20);
  --accent-rgb: 234, 179, 8;
}

body[data-color="cyan"] {
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dim: rgba(6, 182, 212, .10);
  --accent-glow: rgba(6, 182, 212, .20);
  --accent-rgb: 6, 182, 212;
}

body[data-color="teal"] {
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dim: rgba(20, 184, 166, .10);
  --accent-glow: rgba(20, 184, 166, .20);
  --accent-rgb: 20, 184, 166;
}

body[data-color="pink"] {
  --accent: #ec4899;
  --accent-light: #f472b6;
  --accent-dim: rgba(236, 72, 153, .10);
  --accent-glow: rgba(236, 72, 153, .20);
  --accent-rgb: 236, 72, 153;
}

body[data-color="amber"] {
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dim: rgba(245, 158, 11, .10);
  --accent-glow: rgba(245, 158, 11, .20);
  --accent-rgb: 245, 158, 11;
}

body[data-color="lime"] {
  --accent: #84cc16;
  --accent-light: #a3e635;
  --accent-dim: rgba(132, 204, 22, .10);
  --accent-glow: rgba(132, 204, 22, .20);
  --accent-rgb: 132, 204, 22;
}

body[data-color="slate"] {
  --accent: #64748b;
  --accent-light: #94a3b8;
  --accent-dim: rgba(100, 116, 139, .10);
  --accent-glow: rgba(100, 116, 139, .20);
  --accent-rgb: 100, 116, 139;
}


/* =============================================================================
   3. RESET & BASE
   ============================================================================= */

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

html {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* scroll-behavior: smooth is intentionally NOT set globally —
     it causes sluggish momentum scroll on iOS Safari.
     Smooth scrolling is applied only where needed via scrollIntoView({ behavior: 'smooth' })
     and temporary document.documentElement.style.scrollBehavior assignments in JS. */
}

body {
  background: var(--bg-root);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100dvh;
  overflow: hidden;
  /* locked until splash finishes */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loaded {
  overflow-x: hidden;
  overflow-y: auto;
  /* Native momentum scroll on iOS — critical for smooth feel */
  -webkit-overflow-scrolling: touch;
}

/* Scroll lock — applied by JS scrollLock module */
body.scroll-locked {
  overflow: hidden !important;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

body.scroll-locked:not(.modal-open) .page {
  pointer-events: none;
}

/* Modal open state */
body.modal-open .cookie-settings--visible,
body.modal-open .cookie-settings--visible * {
  pointer-events: auto !important;
}

/* Reduced motion */
@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;
  }
}


/* =============================================================================
   4. TYPOGRAPHY & LINKS
   ============================================================================= */

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

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

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

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

ol,
ul {
  list-style: none;
}


/* =============================================================================
   5. UTILITIES — SCROLLBAR / SELECTION
   ============================================================================= */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-off);
  border-radius: 4px;
}

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

::-moz-selection {
  background: var(--accent-dim);
  color: var(--accent-light);
}

/* Lottie containers */
.lp {
  align-items: center;
  display: flex;
  justify-content: center;
}

.lp svg {
  height: 100% !important;
  width: 100% !important;
}


/* =============================================================================
   6. KEYFRAME ANIMATIONS
   ============================================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) translateZ(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn) translateZ(0);
  }
}

@keyframes textBlur {
  from {
    filter: blur(6px);
    opacity: 0;
  }

  to {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-12px) translateZ(0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

@keyframes caretBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes orb-drift {
  0% {
    transform: translate(0, 0) rotate(0deg) translateZ(0);
  }

  33% {
    transform: translate(10px, -5px) rotate(120deg) translateZ(0);
  }

  66% {
    transform: translate(-8px, 12px) rotate(240deg) translateZ(0);
  }

  100% {
    transform: translate(0, 0) rotate(360deg) translateZ(0);
  }
}

@keyframes orb-move {

  0%,
  100% {
    transform: translate(0, 0) translateZ(0);
  }

  20% {
    transform: translate(25px, -15px) translateZ(0);
  }

  40% {
    transform: translate(-15px, 25px) translateZ(0);
  }

  60% {
    transform: translate(35px, 15px) translateZ(0);
  }

  80% {
    transform: translate(-20px, -10px) translateZ(0);
  }
}

@keyframes orb-glow {

  0%,
  100% {
    filter: blur(140px) brightness(1);
    transform: scale(1) translateZ(0);
  }

  50% {
    filter: blur(160px) brightness(1.3);
    transform: scale(1.1) translateZ(0);
  }
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =============================================================================
   7. PERFORMANCE HINTS
   ============================================================================= */

/* GPU layers for frequently-animated elements */
.page__orb,
.hero__sticker,
.svc,
.project-card,
.tech-card,
.why__card,
.tape__item,
.btn,
.hero__social,
.nav__link,
.lang-btn,
.theme-btn {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Shared interactive transition */
.svc,
.project-card,
.tech-card,
.why__card,
.btn,
.hero__social,
.lang-btn,
.theme-btn {
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-spring),
    background 0.2s var(--ease-spring),
    border-color 0.2s var(--ease-spring),
    filter 0.2s var(--ease-spring);
}

.nav {
  will-change: transform, background;
}

.page__orb {
  will-change: transform, filter;
}


/* =============================================================================
   8. SPLASH / LOADER
   ============================================================================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-root);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

.splash__c {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
}

.splash__c.hide {
  opacity: 0;
  transform: scale(.85);
}

.splash__sticker {
  opacity: 0;
  transform: scale(.75) translateY(16px);
  transition: all .8s var(--ease-bounce);
}

.splash__sticker.on {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.splash__bar {
  width: 200px;
  position: relative;
  opacity: 0;
  transition: opacity .4s ease .3s;
}

.splash__bar.on {
  opacity: 1;
}

.splash__track {
  height: 3px;
  background: rgba(255, 255, 255, .05);
  border-radius: 3px;
  overflow: hidden;
}

.splash__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .3s ease;
}

.splash__percent {
  margin-top: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  opacity: .8;
  transition: opacity .3s ease;
}

/* Glitch wipe layers */
.glitch-layer {
  position: fixed;
  inset: 0;
  background: var(--bg-root);
  z-index: 1;
  will-change: transform, opacity;
}

.glitch-layer--1 {
  clip-path: inset(0 0 66% 0);
  transition: transform .5s cubic-bezier(.7, 0, .2, 1) 0s, opacity .3s ease .40s;
}

.glitch-layer--2 {
  clip-path: inset(33% 0 33% 0);
  transition: transform .5s cubic-bezier(.7, 0, .2, 1) .05s, opacity .3s ease .35s;
}

.glitch-layer--3 {
  clip-path: inset(66% 0 0 0);
  transition: transform .5s cubic-bezier(.7, 0, .2, 1) .10s, opacity .3s ease .30s;
}

.glitch-layer--1.go {
  opacity: 0;
  transform: translate(-110%);
}

.glitch-layer--2.go {
  opacity: 0;
  transform: translate(110%);
}

.glitch-layer--3.go {
  opacity: 0;
  transform: translate(-110%) skew(-5deg);
}


/* =============================================================================
   9. PAGE LAYOUT & ORBS
   ============================================================================= */

.page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.page.loaded {
  opacity: 1;
  visibility: visible;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}

.page__orb--a {
  top: -20%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: color-mix(in srgb, var(--accent) 3%, transparent);
  animation:
    orb-move 35s ease-in-out infinite,
    orb-glow 12s ease-in-out infinite,
    orb-drift 20s linear infinite;
}

.page__orb--b {
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  animation:
    orb-move 40s ease-in-out infinite reverse,
    orb-glow 15s ease-in-out infinite reverse,
    orb-drift 25s linear infinite reverse;
}


/* =============================================================================
   10. REVEAL ANIMATIONS
   ============================================================================= */

/* Sections + tape: slide up on scroll */
.tape,
section {
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  transition: opacity .8s var(--ease-spring), transform .8s var(--ease-spring);
}

.tape.revealed,
section.revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Child cards: staggered via JS (.revealed added per-card with delay) */
.svc,
.project-card,
.tech-card,
.why__card {
  opacity: 0;
  transform: translateY(20px) translateZ(0) scale(.95);
  transition: opacity .6s var(--ease-spring), transform .6s var(--ease-spring);
}

.svc.revealed,
.project-card.revealed,
.tech-card.revealed,
.why__card.revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1);
}

/* Tape items */
.tape__item {
  opacity: 0;
  transform: translateY(15px) translateZ(0);
  transition: opacity .5s var(--ease-spring), transform .5s var(--ease-spring);
}

.tape.revealed .tape__item {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Counter animation */
.tape__value.animated {
  animation: countUp 1.5s ease-out forwards;
}

/* Steps (process) */
.step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}

section.revealed .step {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================================================
   11. NAVIGATION
   ============================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: color-mix(in srgb, var(--bg-root) 80%, transparent);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .5s ease, transform .5s ease, background .3s ease, border-color .3s ease;
}

.nav.vis {
  opacity: 1;
  transform: translateY(0);
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg-root) 95%, transparent);
  border-bottom-color: var(--border);
}

.nav__left,
.nav__center,
.nav__right {
  display: flex;
  align-items: center;
}

.nav__center {
  flex: 1;
  justify-content: center;
}

.nav__right {
  gap: 16px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.nav__logo {
  width: 25px;
  height: 25px;
}

.nav__brand {
  font-size: 14px;
  font-weight: 700;
}

.nav__brand span {
  color: var(--accent);
}

/* Language button */
.lang-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  transition: all .2s;
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px) translateZ(0);
}

/* Theme toggle */
.theme-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}

.theme-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px) translateZ(0);
}

.theme-icon {
  display: none;
  width: 16px;
  height: 16px;
}

.theme-icon--light {
  display: block;
}


/* =============================================================================
   12. HERO SECTION
   ============================================================================= */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px 40px;
}

.hero__left {
  flex-shrink: 0;
}

.hero__sticker {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 80px rgba(249, 115, 22, .12));
}

.hero__right {
  flex: 1;
}

/* Badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius-pill);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}

.hero__badge--location {
  background: rgba(59, 130, 246, .10);
  border-color: rgba(59, 130, 246, .20);
  color: #60a5fa;
}

.hero__badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), .2);
}

.hero__badge--location:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, .2);
}

.hero__badge svg {
  color: var(--accent);
}

.hero__badge--location svg {
  color: #3b82f6;
}

/* Status pill */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(34, 197, 94, .05);
  border: 1px solid rgba(34, 197, 94, .10);
  border-radius: var(--radius-pill);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}

.hero__status:hover {
  background: rgba(34, 197, 94, .10);
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, .5);
  animation: blink 2s ease-in-out infinite;
}

/* Title */
.hero__title {
  margin-bottom: 12px;
}

.hero__line {
  font-size: clamp(50px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--text);
}

.hero__line--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typing box */
.hero__typing {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hero__cursor {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.hero__typed {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.hero__caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: caretBlink .8s step-end infinite;
}

/* Sub-text */
.hero__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 500px;
}

.hero__sub strong {
  color: var(--accent-light);
  font-weight: 700;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.hero__actions-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Socials */
.hero__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 40px;
}

.hero__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all .2s;
}

.hero__social:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  transform: translateY(-2px) translateZ(0) scale(1.1);
}

.hero__social[title="Email"]:hover {
  color: #EA4335;
}

.hero__social[title="Telegram"]:hover {
  color: #0088cc;
}

.hero__social[title="GitHub"]:hover {
  color: #fff;
}

.hero__social[title="X"]:hover {
  color: #1da1f2;
}


/* =============================================================================
   13. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s var(--ease-out-expo);
}

.btn--main {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 85%, black));
  color: #fff;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 60%, transparent);
}

.btn--main:hover {
  box-shadow: 0 8px 40px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-3px) translateZ(0) scale(1.02);
}

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

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

.btn--lg {
  font-size: 15px;
  padding: 14px 32px;
}

.btn__arr {
  opacity: .5;
  transition: all .2s;
}

.btn:hover .btn__arr {
  opacity: 1;
  transform: translate(2px, -2px);
}


/* =============================================================================
   14. SECTION TITLES
   ============================================================================= */

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.section-title svg {
  color: var(--accent);
}

.section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
}


/* =============================================================================
   15. TECH STACK
   ============================================================================= */

.tech-stack {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 48px 32px;
}

.tech-stack__top {
  margin-bottom: 28px;
}

.tech-stack__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* Shared card base (tech / project / svc / why) */
.tech-card,
.project-card,
.svc,
.why__card {
  background: rgba(255, 255, 255, .01);
  border: 1px solid hsla(0, 0%, 100%, .04);
  border-radius: 14px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.tech-card:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px var(--accent-dim);
  transform: translateY(-2px) translateZ(0) scale(1.02);
}

.tech-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  opacity: .7;
  transition: all .3s;
}

.tech-card:hover .tech-card__icon {
  opacity: 1;
  transform: scale(1.1);
}

.tech-card__icon svg {
  width: 20px;
  height: 20px;
}

.tech-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.tech-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Shared tag */
.tech-card__item,
.svc__tag,
.project-card__tag {
  padding: 2px 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), .10);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
  transition: border-color .2s;
}

.tech-card:hover .tech-card__item,
.svc:hover .svc__tag,
.project-card:hover .project-card__tag {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}


/* =============================================================================
   16. PROJECTS
   ============================================================================= */

.projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 48px 32px;
}

.projects__top {
  margin-bottom: 28px;
}

.projects__top-row,
.services__top-row,
.why__top-row,
.process__top-row,
.tech-stack__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__sticker {
  flex-shrink: 0;
  opacity: .85;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, .1));
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px var(--accent-dim);
  transform: translateY(-2px) translateZ(0) scale(1.02);
}

.project-card__image {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__overlay svg {
  width: 20px;
  height: 20px;
}

.project-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.project-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}


/* =============================================================================
   17. SERVICES
   ============================================================================= */

.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
}

.services__top {
  margin-bottom: 28px;
}

.services__sticker,
.why__sticker,
.process__sticker {
  flex-shrink: 0;
  opacity: .85;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, .1));
}

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

.svc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.svc:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px var(--accent-dim);
  transform: translateY(-2px) translateZ(0) scale(1.02);
}

.svc__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc__ico {
  color: var(--accent);
  opacity: .7;
  flex-shrink: 0;
  transition: all .3s;
}

.svc:hover .svc__ico {
  opacity: 1;
  transform: scale(1.1);
}

.svc__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.svc__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}


/* =============================================================================
   18. WHY SECTION
   ============================================================================= */

.why {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
}

.why__top {
  margin-bottom: 24px;
}

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

.why__card {
  padding: 20px;
}

.why__card:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.why__card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.why__ico {
  color: var(--accent);
  opacity: .7;
  transition: all .3s;
}

.why__card:hover .why__ico {
  opacity: 1;
}

.why__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.why__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}


/* =============================================================================
   19. PROCESS SECTION
   ============================================================================= */

.process {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px;
}

.process__top {
  margin-bottom: 28px;
}

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

.step {
  background: rgba(255, 255, 255, .01);
  border: 1px solid hsla(0, 0%, 100%, .04);
  border-radius: 14px;
  padding: 20px;
  transition: border-color .3s ease;
}

.step:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.step__num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: .2;
  margin-bottom: 8px;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.step__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}


/* =============================================================================
   20. TAPE (STATS)
   ============================================================================= */

.tape {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .01);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.tape__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}

.tape__item:last-child {
  border-right: none;
}

.tape__ico {
  color: var(--accent);
  opacity: .6;
  flex-shrink: 0;
}

.tape__value {
  display: inline-block;
  position: relative;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}

.tape__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}


/* =============================================================================
   21. CTA SECTION
   ============================================================================= */

.cta-section {
  padding: 48px 48px 32px;
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: radial-gradient(ellipse at top, var(--accent-glow), transparent 70%);
  border: 1px solid rgba(var(--accent-rgb), .10);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cta__sticker {
  display: inline-block;
  margin-bottom: 8px;
}

.cta__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cta__title em {
  color: var(--accent-light);
  font-style: normal;
}

.cta__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.cta__btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}


/* =============================================================================
   22. FOOTER
   ============================================================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 48px 12px;
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.footer__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.footer__brand span {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all .2s;
}

.footer__social:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.footer__social[title="Email"]:hover {
  color: #EA4335;
}

.footer__social[title="Telegram"]:hover {
  color: #0088cc;
}

.footer__social[title="GitHub"]:hover {
  color: #fff;
}

.footer__social[title="X"]:hover {
  color: #1da1f2;
}

.footer__copy {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-off);
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__links {
  display: flex;
  align-items: center;
}

.footer__link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer__link:hover {
  color: var(--text-dim);
}

.footer__email {
  text-align: center;
  padding: 0 0 16px;
}

.footer__email-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer__email-link:hover {
  color: var(--text-dim);
}


/* =============================================================================
   23. NOISE OVERLAY
   ============================================================================= */

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: .018;
  pointer-events: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.theme-light .noise {
  opacity: .008;
}


/* =============================================================================
   24. COOKIE BANNER & SETTINGS MODAL
   ============================================================================= */

/* --- Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform .3s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.cookie-banner__description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

.cookie-banner__link:hover {
  color: var(--accent-light);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s ease;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-banner__btn--reject:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: var(--text-dim);
  border: none;
  text-decoration: underline;
}

.cookie-banner__btn--settings:hover {
  color: var(--text);
}

/* --- Settings modal --- */
.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.cookie-settings--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-settings__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-settings__content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transform: scale(.9);
  transition: transform .3s ease;
}

.cookie-settings--visible .cookie-settings__content {
  transform: scale(1);
}

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

.cookie-settings__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.cookie-settings__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s ease;
}

.cookie-settings__close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.cookie-settings__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.cookie-option {
  margin-bottom: 24px;
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-option__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-option__title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

.cookie-option__description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all .3s ease;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all .3s ease;
}

.cookie-toggle input:checked+.cookie-toggle__slider {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-toggle input:checked+.cookie-toggle__slider::before {
  transform: translateX(20px);
  background: #fff;
}

.cookie-toggle input:disabled+.cookie-toggle__slider {
  opacity: .5;
  cursor: not-allowed;
}

.cookie-settings__footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cookie-settings__btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s ease;
}

.cookie-settings__btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}


/* =============================================================================
   25. PRIVACY PAGE
   ============================================================================= */

.privacy-page {
  min-height: 100vh;
  background: var(--bg-root);
  color: var(--text);
  font-family: var(--font);
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.privacy-header {
  margin-bottom: 60px;
}

.privacy-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Privacy navigation bar */
.privacy-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.privacy-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.privacy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.privacy-back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Privacy content typography */
.privacy-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
  color: var(--text);
}

.privacy-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 30px 0 15px;
  color: var(--text);
}

.privacy-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-dim);
}

.privacy-content ul {
  margin: 16px 0 24px 24px;
}

.privacy-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text-dim);
  list-style: disc;
}

.privacy-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.privacy-content a:hover {
  border-bottom-color: var(--accent);
}

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

.privacy-content code {
  font-family: var(--mono);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* Privacy sections */
.privacy-section {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.privacy-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.privacy-section-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* Cookie types grid */
.cookie-types {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.cookie-type {
  padding: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cookie-type h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.cookie-type p {
  margin-bottom: 12px;
}

.cookie-examples {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* Update notice */
.update-info {
  margin-top: 48px;
  padding: 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: var(--radius);
}

.update-info strong {
  color: var(--accent);
}


/* =============================================================================
   26. IOS WEBAPP FIXES
   ============================================================================= */

/* Safe-area padding */
body.ios-webapp {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

/* Nav bar — extends under status bar */
body.ios-webapp .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: var(--safe-top);
  box-sizing: content-box;
  z-index: 1000;
}

/* Hero offset to account for taller nav */
body.ios-webapp .hero {
  padding-top: calc(80px + var(--safe-top));
}

/* Splash offset */
body.ios-webapp .splash {
  padding-top: var(--safe-top);
}

/* Modal sizing */
body.ios-webapp.modal-open .cookie-settings__content {
  max-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px);
  margin-top: var(--safe-top);
  margin-bottom: var(--safe-bottom);
}

/* Standalone: disable native overscroll bounce — PTR is handled entirely in JS.
   In regular Safari this block is NOT active, so native PTR works normally. */
@media (display-mode: standalone) {
  html {
    overscroll-behavior-y: none;
  }
}


/* =============================================================================
   27. RESPONSIVE — 900px
   ============================================================================= */

@media (max-width: 900px) {

  .services__grid,
  .steps,
  .why__grid,
  .tech__grid,
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =============================================================================
   28. RESPONSIVE — 768px
   ============================================================================= */

@media (max-width: 768px) {

  /* Hero */
  .hero {
    flex-direction: column;
    gap: 16px;
    padding: 90px 24px 30px;
    text-align: center;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__sub {
    max-width: 100%;
  }

  .hero__typing {
    margin: 0 auto 14px;
  }

  .hero__sticker .lp {
    height: 180px !important;
    width: 180px !important;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__actions-main {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero__socials {
    order: -1;
    margin-bottom: 8px;
  }

  /* Sections */
  .process,
  .services,
  .why {
    padding: 40px 24px;
  }

  .tech-stack,
  .projects {
    padding: 40px 24px;
  }

  .cta-section {
    padding: 32px 24px 16px;
  }

  .cta__inner {
    padding: 28px 20px;
  }

  .cta__btns {
    align-items: center;
    flex-direction: column;
  }

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

  /* Tape */
  .tape {
    flex-wrap: wrap;
    margin: 0 24px;
  }

  .tape__item {
    flex: 1 1 45%;
  }

  .tape__item:nth-child(2) {
    border-right: none;
  }

  /* Grids → 1 column */
  .services__grid,
  .steps,
  .why__grid,
  .tech__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding: 20px 24px 12px;
  }

  .footer__container {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
    position: static;
  }

  .footer__socials {
    position: static;
    transform: none;
    left: auto;
  }

  .footer__brand {
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer__copy {
    text-align: center;
  }

  /* Nav */
  .nav {
    padding: 10px 20px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-root);
  }

  .nav__right {
    gap: 12px;
  }

  /* Misc */
  .section-title {
    font-size: 22px;
  }

  .page__orb {
    display: none;
  }

  /* Kill expensive filters on mobile */
  .hero__sticker,
  .services__sticker,
  .why__sticker {
    animation: none;
    filter: none;
  }

  /* Cookie banner */
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }

  .cookie-settings {
    padding: 0;
  }

  .cookie-settings__content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  /* Privacy */
  .privacy-container {
    padding: 100px 16px 40px;
  }

  .privacy-title {
    font-size: 32px;
  }

  .privacy-section {
    padding: 20px;
  }

  .privacy-nav {
    top: 16px;
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .privacy-controls {
    gap: 8px;
  }

  .privacy-back-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .lang-btn,
  .theme-btn {
    width: 32px;
    height: 32px;
  }
}


/* =============================================================================
   29. RESPONSIVE — 480px
   ============================================================================= */

@media (max-width: 480px) {

  /* Hero */
  .hero__line {
    font-size: 32px;
  }

  .hero__title {
    margin-bottom: 8px;
  }

  .hero__badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .hero__typing {
    margin: 0 auto 12px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero__sub {
    font-size: 14px;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .btn--lg {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Tape */
  .tape__value {
    font-size: 16px;
  }

  .tape__item {
    gap: 6px;
    padding: 12px 8px;
  }

  /* Section titles */
  .section-title {
    font-size: 20px;
    gap: 8px;
  }

  .section-sub {
    font-size: 14px;
  }

  /* Grids */
  .services__grid,
  .steps,
  .why__grid,
  .tech__grid,
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Card padding/font reduction */
  .svc,
  .why__card,
  .step,
  .tech-card,
  .project-card {
    padding: 16px;
  }

  .svc__name,
  .why__label,
  .step__name,
  .tech-card__name,
  .project-card__title {
    font-size: 14px;
  }

  .svc__desc,
  .why__desc,
  .step__desc,
  .project-card__desc {
    font-size: 12px;
  }

  /* CTA */
  .cta__inner {
    padding: 24px 16px;
  }

  .cta__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .cta__desc {
    font-size: 13px;
  }

  /* Nav */
  .nav {
    padding: 8px 16px;
  }

  .nav__brand {
    font-size: 12px;
  }

  .nav__right {
    gap: 8px;
  }

  .theme-btn,
  .lang-btn {
    height: 32px;
    width: 32px;
  }

  /* Kill all filters at 480 */
  .page__orb {
    display: none;
  }

  .hero__sticker,
  .services__sticker,
  .why__sticker,
  .projects__sticker,
  .process__sticker,
  .cta__sticker {
    filter: none;
  }

  /* Splash */
  .splash__c .lp {
    width: 80px !important;
    height: 80px !important;
  }

  .splash__bar {
    width: 160px;
  }

  .splash__percent {
    font-size: 11px;
    margin-top: 6px;
  }

  .splash__c {
    gap: 16px;
  }

  /* Privacy */
  .privacy-nav {
    gap: 6px;
  }

  .privacy-controls {
    gap: 6px;
  }

  .privacy-back-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .lang-btn,
  .theme-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}