/* ==========================================================================
   NEXORA — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root {
  --bg-primary: #050505;
  --bg-secondary: #0b0b0b;
  --surface: #111111;
  --surface-elevated: #171717;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #6b6b70;
  --accent: #ff6b2c;
  --accent-light: #ff8a5b;
  --accent-dim: rgba(255, 107, 44, 0.12);

  --font-display: 'Vazirmatn', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1240px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--surface-elevated); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 640px;
  margin-top: 18px;
  line-height: 1.9;
}

.section-head {
  margin-bottom: 64px;
}

.glass {
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), transparent 35%, var(--accent-light), transparent 70%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: spin-angle 3s linear infinite paused;
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary:hover::before { opacity: 1; animation-play-state: running; }
.btn-primary .btn-glow {
  position: absolute;
  inset: -14px;
  border-radius: 100px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
}
.btn-primary:hover .btn-glow { opacity: 1; }
.btn-primary svg { transition: transform 0.4s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(-4px); }

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-angle {
  to { --angle: 360deg; }
}

.btn-ghost {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-sm { padding: 12px 22px; font-size: 14px; }

/* ==========================================================================
   Loader
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s var(--ease-in-out), visibility 0.9s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0;
  animation: loader-fade 0.9s var(--ease-out) 0.15s forwards;
}
.loader-mark span { color: var(--accent); }
.loader-sub {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  margin-top: 10px;
  opacity: 0;
  animation: loader-fade 0.9s var(--ease-out) 0.35s forwards;
}
.loader-line {
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-top: 34px;
  animation: loader-line 1.4s var(--ease-in-out) 0.5s forwards;
  box-shadow: 0 0 20px var(--accent);
}
@keyframes loader-fade { to { opacity: 1; } }
@keyframes loader-line { to { width: 220px; } }

/* ==========================================================================
   Scroll progress + cursor
   ========================================================================== */

#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: right;
  transform: scaleX(0);
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent);
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.cursor-ring.is-active {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(255, 107, 44, 0.08);
}
.cursor-ring .cursor-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.cursor-ring.is-active .cursor-label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Ambient background systems
   ========================================================================== */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 10%, transparent 75%);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1180px);
  z-index: 900;
  border-radius: 100px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), padding 0.5s var(--ease-out), top 0.5s var(--ease-out), box-shadow 0.5s ease;
}
#navbar.scrolled {
  top: 12px;
  padding: 10px 24px;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.nav-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 9px 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 16px;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 0 8px var(--accent);
}
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  width: 16px; height: 1.5px;
  background: #fff;
  left: 0;
  transition: transform 0.3s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary span:last-child { display: none; }
}

.mobile-menu {
  position: fixed;
  top: 90px;
  left: 3%;
  right: 3%;
  z-index: 890;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--accent-dim); color: var(--accent-light); }

/* ==========================================================================
   Hero
   ========================================================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-copy { position: relative; z-index: 3; }

.hero-title {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease-out) 0.7s forwards;
}
.hero-title .accent-word {
  background: linear-gradient(120deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin-top: 26px;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.9;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s var(--ease-out) 0.9s forwards;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s var(--ease-out) 1.1s forwards;
}

.hero-trust {
  margin-top: 56px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.3s forwards;
}
.hero-trust div { display: flex; flex-direction: column; gap: 4px; }
.hero-trust b { font-size: 22px; font-weight: 800; }
.hero-trust span { font-size: 12.5px; color: var(--text-tertiary); }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 3D stage */

.hero-stage {
  position: relative;
  height: 560px;
  perspective: 1400px;
}

.orb-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.orb-core {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 202, 172, 0.9), transparent 42%),
    radial-gradient(circle at 65% 70%, rgba(255, 107, 44, 0.5), transparent 55%),
    linear-gradient(155deg, #2a2a2a, #0c0c0c 60%);
  box-shadow:
    0 0 70px rgba(255, 107, 44, 0.35),
    inset 0 0 60px rgba(0, 0, 0, 0.6),
    inset 10px 10px 40px rgba(255, 138, 91, 0.15);
  animation: orb-rotate 16s linear infinite, orb-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes orb-rotate {
  from { transform: rotateY(0deg) rotateX(6deg); }
  to { transform: rotateY(360deg) rotateX(6deg); }
}
@keyframes orb-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(255, 138, 91, 0.35);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.ring-1 {
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  transform: rotateX(75deg);
  animation: ring-spin 14s linear infinite;
}
.ring-2 {
  width: 400px; height: 400px;
  margin: -200px 0 0 -200px;
  transform: rotateX(70deg) rotateZ(40deg);
  border-color: rgba(255, 255, 255, 0.12);
  animation: ring-spin 22s linear infinite reverse;
}
.ring-3 {
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  transform: rotateX(80deg) rotateZ(-25deg);
  border-color: rgba(255, 107, 44, 0.18);
  animation: ring-spin 30s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotateX(var(--rx, 75deg)) rotateZ(0deg); }
  to { transform: rotateX(var(--rx, 75deg)) rotateZ(360deg); }
}

.orb-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent);
  animation: particle-orbit linear infinite;
}
@keyframes particle-orbit {
  from { transform: rotate(0deg) translateX(var(--r, 220px)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--r, 220px)) rotate(-360deg); }
}

.hero-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: 16px;
  min-width: 150px;
  animation: card-float 6s ease-in-out infinite;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}
.hero-card .card-label { font-size: 12px; color: var(--text-tertiary); }
.hero-card .card-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.hero-card .card-value span { color: var(--accent-light); }

.card-1 { top: 6%; right: 0%; animation-delay: 0s; }
.card-2 { bottom: 14%; right: 4%; animation-delay: 1.2s; }
.card-3 { top: 40%; left: -2%; animation-delay: 0.6s; }
.card-4 { bottom: 0%; left: 12%; animation-delay: 1.8s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { height: 420px; order: -1; margin-bottom: 10px; }
  .hero-card { min-width: 120px; padding: 10px 14px; }
  .hero-card .card-value { font-size: 17px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 340px; }
  .orb-core { width: 150px; height: 150px; }
  .ring-1 { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .ring-2 { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .ring-3 { width: 310px; height: 310px; margin: -155px 0 0 -155px; }
  .hero-card { display: none; }
  .hero-card.card-1, .hero-card.card-2 { display: flex; flex-direction: column; }
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.6s forwards;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scroll-cue-pulse 2s ease-in-out infinite; }
@keyframes scroll-cue-pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ==========================================================================
   Reveal utility (scroll)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].in-view { opacity: 1; transform: none !important; filter: blur(0) !important; }

[data-reveal="up"] { transform: translateY(48px); }
[data-reveal="right"] { transform: translateX(64px); }
[data-reveal="left"] { transform: translateX(-64px); }
[data-reveal="scale"] { transform: scale(0.86); }
[data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
[data-reveal="rotate"] { transform: rotate(-4deg) translateY(30px); }

/* ==========================================================================
   Stats
   ========================================================================== */

#stats { padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 34px 26px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  transition: text-shadow 0.6s ease;
}
.stat-num.done { text-shadow: 0 0 26px rgba(255, 107, 44, 0.55); }
.stat-num .plus { color: var(--accent-light); }
.stat-label { margin-top: 10px; color: var(--text-secondary); font-size: 14.5px; }

@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   About
   ========================================================================== */

#about { padding: 160px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-copy p { margin-top: 10px; }
.about-list {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
}
.about-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.about-visual {
  position: relative;
  height: 460px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.struct-scene {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  animation: struct-rotate 20s linear infinite;
}
@keyframes struct-rotate {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
.struct-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255,107,44,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(2px);
}
.struct-face.f1 { transform: translateZ(140px); }
.struct-face.f2 { transform: rotateY(90deg) translateZ(140px); }
.struct-face.f3 { transform: rotateY(180deg) translateZ(140px); }
.struct-face.f4 { transform: rotateY(-90deg) translateZ(140px); }
.struct-face.f5 { transform: rotateX(90deg) translateZ(140px); }
.struct-face.f6 { transform: rotateX(-90deg) translateZ(140px); }

.struct-label {
  position: absolute;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
  animation: label-float 5s ease-in-out infinite;
}
.struct-label.l1 { top: -6%; left: 8%; animation-delay: 0s; }
.struct-label.l2 { top: 18%; right: -10%; animation-delay: 0.9s; }
.struct-label.l3 { bottom: 10%; left: -12%; animation-delay: 1.6s; }
.struct-label.l4 { bottom: -4%; right: 12%; animation-delay: 2.3s; }
@keyframes label-float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { order: -1; height: 340px; }
  .about-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */

#services { padding: 100px 0 160px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 34px 28px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.4s ease, opacity 0.4s ease;
  transform-style: preserve-3d;
}
.services-grid:hover .service-card { opacity: 0.55; }
.services-grid:hover .service-card:hover { opacity: 1; }
.service-card:hover { border-color: var(--border-strong); }
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--accent-dim), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

.service-num { font-size: 13px; color: var(--text-tertiary); font-weight: 700; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  color: var(--accent-light);
  margin: 18px 0 22px;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-title { font-size: 19px; font-weight: 700; }
.service-desc { margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.service-arrow {
  margin-top: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}
.service-card:hover .service-arrow { background: var(--accent); border-color: var(--accent); transform: translateX(-6px); }
.service-card:hover .service-arrow svg { stroke: #0a0a0a; }

@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Projects
   ========================================================================== */

#projects { padding: 100px 0 160px; }
.projects-list { display: flex; flex-direction: column; gap: 22px; }
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.project-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.project-media .media-bg {
  position: absolute; inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s var(--ease-out);
}
.project-card:hover .media-bg { transform: scale(1.08); }
.project-media .media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,0.15), rgba(5,5,5,0.75));
}
.project-media .spotlight {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,91,0.25), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.project-card:hover .spotlight { opacity: 1; }
.project-info {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.project-cat { font-size: 12.5px; color: var(--accent-light); font-weight: 700; letter-spacing: 0.04em; }
.project-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-top: 12px; transition: transform 0.5s var(--ease-out); }
.project-card:hover .project-name { transform: translateX(-6px); }
.project-desc { margin-top: 14px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.85; }
.project-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span { font-size: 12px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--text-secondary); }

@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 220px; }
  .project-info { padding: 28px; }
}

/* ==========================================================================
   Process
   ========================================================================== */

#process { padding: 100px 0 160px; }
.timeline { position: relative; margin-top: 30px; }
.timeline-track {
  position: absolute;
  top: 26px; right: 0; left: 0;
  height: 2px;
  background: var(--border);
}
.timeline-progress {
  position: absolute;
  top: 26px; right: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 14px var(--accent);
  transition: width 1.8s var(--ease-out);
}
.timeline-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline-step { text-align: center; padding-top: 0; }
.step-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-strong);
  margin: 20px auto 26px;
  position: relative;
  z-index: 2;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.timeline-step.active .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px var(--accent); }
.step-num { font-size: 13px; color: var(--text-tertiary); font-weight: 700; }
.step-title { font-size: 19px; font-weight: 700; margin-top: 8px; }
.step-desc { font-size: 13.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.8; }

@media (max-width: 760px) {
  .timeline-track, .timeline-progress { display: none; }
  .timeline-steps { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   Why
   ========================================================================== */

#why { padding: 100px 0 160px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  padding: 30px 26px;
  border-radius: 20px;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
}
.why-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.why-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.why-card:hover .why-icon { transform: rotate(10deg); box-shadow: 0 0 24px var(--accent-dim); }
.why-title { font-size: 16.5px; font-weight: 700; margin-top: 18px; }
.why-desc { font-size: 13.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.8; }

@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Team
   ========================================================================== */

#team { padding: 100px 0 160px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3/4;
  transform-style: preserve-3d;
}
.team-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out), filter 0.8s ease;
  filter: grayscale(0.4) brightness(0.75);
}
.team-card:hover .team-photo { transform: scale(1.08); filter: grayscale(0) brightness(0.9); }
.team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,0.92) 100%);
}
.team-info {
  position: absolute; right: 0; bottom: 0; left: 0;
  padding: 22px;
  transform: translateY(10px);
  transition: transform 0.5s var(--ease-out);
}
.team-card:hover .team-info { transform: translateY(0); }
.team-name { font-size: 17px; font-weight: 700; }
.team-role { font-size: 13px; color: var(--accent-light); margin-top: 4px; }

@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */

#testimonials { padding: 100px 0 160px; overflow: hidden; }
.test-wrap { position: relative; max-width: 780px; margin: 0 auto; }
.test-track {
  display: flex;
  cursor: grab;
  touch-action: pan-y;
}
.test-track.dragging { cursor: grabbing; }
.test-slide {
  flex: 0 0 100%;
  padding: 46px 44px;
  border-radius: 26px;
  text-align: center;
}
.test-stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; }
.test-quote { font-size: clamp(16px, 2vw, 20px); line-height: 1.95; margin-top: 20px; color: var(--text-primary); }
.test-person { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.test-avatar { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center; }
.test-name { font-weight: 700; font-size: 14.5px; }
.test-role { font-size: 12.5px; color: var(--text-tertiary); }

.test-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.test-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.test-arrow:hover { background: var(--accent-dim); border-color: var(--accent); }
.test-dots { display: flex; gap: 8px; }
.test-dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background 0.3s ease, width 0.3s ease; }
.test-dots button.active { background: var(--accent); width: 20px; border-radius: 100px; }

@media (max-width: 640px) { .test-slide { padding: 32px 24px; } }

/* ==========================================================================
   Blog
   ========================================================================== */

#blog { padding: 100px 0 160px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.blog-media { position: relative; height: 190px; overflow: hidden; }
.blog-media .media-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; transition: transform 0.8s var(--ease-out); }
.blog-card:hover .blog-media .media-bg { transform: scale(1.1); }
.blog-media .media-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,5,5,0.7)); }
.blog-cat {
  position: absolute; top: 14px; right: 14px;
  font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(5,5,5,0.6); backdrop-filter: blur(6px);
  color: var(--accent-light);
}
.blog-body { padding: 24px; }
.blog-date { font-size: 12px; color: var(--text-tertiary); }
.blog-title { font-size: 17px; font-weight: 700; margin-top: 10px; line-height: 1.6; }
.blog-desc { font-size: 13.5px; color: var(--text-secondary); margin-top: 10px; line-height: 1.8; }
.blog-arrow { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent-light); font-weight: 600; }
.blog-arrow svg { transition: transform 0.4s var(--ease-out); }
.blog-card:hover .blog-arrow svg { transform: translateX(-5px); }

@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA
   ========================================================================== */

#cta {
  padding: 140px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 44, 0.25);
  animation: cta-spin 40s linear infinite;
}
.cta-ring::before, .cta-ring::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-ring::after { inset: 130px; border-color: rgba(255, 107, 44, 0.15); }
@keyframes cta-spin { to { transform: rotate(360deg); } }

.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(30px, 5vw, 58px); font-weight: 800; letter-spacing: -0.02em; max-width: 780px; margin: 0 auto; }
.cta-sub { margin-top: 20px; color: var(--text-secondary); max-width: 560px; margin-inline: auto; font-size: 16px; line-height: 1.9; }
.cta-actions { margin-top: 40px; display: flex; justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */

#contact { padding: 100px 0 160px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info-list { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item b { display: block; font-size: 14.5px; }
.contact-info-item span { font-size: 13.5px; color: var(--text-secondary); }

.contact-form { padding: 40px; border-radius: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-top: 22px; }
.field:first-child { margin-top: 0; }
.field label {
  position: absolute;
  right: 18px; top: 17px;
  font-size: 14.5px;
  color: var(--text-tertiary);
  transition: transform 0.3s var(--ease-out), font-size 0.3s ease, color 0.3s ease;
  pointer-events: none;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 17px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14.5px;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,107,44,0.04);
  box-shadow: 0 0 0 4px var(--accent-dim);
  transform: translateY(-2px);
}
.field input:focus + label, .field textarea:focus + label,
.field.filled label {
  transform: translateY(-38px) translateX(0);
  font-size: 12px;
  color: var(--accent-light);
}
.field select { color: var(--text-secondary); appearance: none; }
.field select:valid { color: var(--text-primary); }
.field .select-arrow { position: absolute; left: 18px; top: 20px; pointer-events: none; color: var(--text-tertiary); }

.field-error { font-size: 12px; color: var(--accent-light); margin-top: 6px; min-height: 16px; opacity: 0; transition: opacity 0.3s ease; }
.field-error.show { opacity: 1; }

.form-submit { margin-top: 30px; width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}

/* Success modal + project/blog modal */

.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5,5,5,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 520px;
  border-radius: 26px;
  padding: 44px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.45s var(--ease-out);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.modal-box h3 { font-size: 22px; font-weight: 800; }
.modal-box p { margin-top: 12px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.8; }
.modal-close-btn { margin-top: 28px; }

.detail-modal .modal-box { max-width: 640px; text-align: right; max-height: 84vh; overflow-y: auto; }
.detail-modal .modal-cat { font-size: 12.5px; color: var(--accent-light); font-weight: 700; }
.detail-modal h3 { margin-top: 12px; }
.detail-modal .detail-media { height: 220px; border-radius: 16px; background-size: cover; background-position: center; margin-top: 20px; }
.detail-modal p { text-align: right; }
.modal-x {
  position: absolute; top: 20px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  position: relative;
  padding: 90px 0 30px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.footer-brand-name { font-size: 24px; font-weight: 800; }
.footer-desc { margin-top: 16px; color: var(--text-secondary); font-size: 13.5px; max-width: 280px; line-height: 1.9; }
.footer-col-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--text-secondary); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent-light); }
.footer-bottom {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  position: relative; z-index: 2;
}
.footer-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, black 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 60%);
  opacity: 0.6;
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Toast (contact confirmation on page)
   ========================================================================== */

.skip-link {
  position: absolute; right: 12px; top: -60px;
  background: var(--accent); color: #0a0a0a;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  z-index: 10000;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 12px; }
