/* =========================================================
   NR Digital – Stylesheet
   Dark (default) & Light Mode via [data-theme]
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --accent: #6d5efc;
  --accent-2: #2d9cff;
  --accent-grad: linear-gradient(135deg, #6d5efc 0%, #2d9cff 100%);
  --accent-soft: rgba(109, 94, 252, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #080c18;
  --bg-2: #0d1424;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --heading: #ffffff;
  --muted: #93a1bd;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  --glass: rgba(11, 17, 32, 0.72);
  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f4f5fd;
  --bg-2: #eaedf9;
  --surface: #ffffff;
  --surface-2: #f4f6ff;
  --border: rgba(20, 24, 60, 0.08);
  --border-strong: rgba(20, 24, 60, 0.14);
  --text: #2a3450;
  --heading: #0c1326;
  --muted: #5a6784;
  --shadow: 0 24px 50px -22px rgba(45, 55, 130, 0.28);
  --card-shadow: 0 14px 34px -20px rgba(45, 55, 130, 0.30);
  --glass: rgba(248, 249, 255, 0.82);
  color-scheme: light;
}
[data-theme="dark"] { --card-shadow: none; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(109, 94, 252, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(109, 94, 252, 0.75); }
.btn-ghost { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--heading); cursor: pointer; transition: background 0.18s var(--ease), transform 0.18s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Topline ---------- */
.topline {
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 6px; box-shadow: 0 0 0 0 rgba(46,204,113,0.6); animation: pulse 2.4s infinite; vertical-align: middle; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(46,204,113,0.5);} 70%{box-shadow:0 0 0 8px rgba(46,204,113,0);} 100%{box-shadow:0 0 0 0 rgba(46,204,113,0);} }

/* ---------- Header ---------- */
#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 24px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em;
  box-shadow: 0 8px 20px -8px rgba(109,94,252,0.6);
}
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--heading); letter-spacing: -0.02em; }
.logo-word span { font-weight: 400; color: var(--muted); }

#main-nav { display: flex; gap: 26px; margin-left: 14px; }
#main-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
#main-nav a:hover { color: var(--heading); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
#nav-toggle { display: none; flex-direction: column; gap: 5px; }
#nav-toggle span { width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: 0.2s; }

/* Theme toggle icon visibility */
#theme-toggle .i-sun { display: none; }
#theme-toggle .i-moon { display: block; }
[data-theme="light"] #theme-toggle .i-sun { display: block; }
[data-theme="light"] #theme-toggle .i-moon { display: none; }

@media (max-width: 940px) {
  #main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 4px; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px 24px; display: none;
  }
  #main-nav.open { display: flex; }
  #main-nav a { padding: 10px 0; font-size: 1.05rem; }
  .header-cta { display: none; }
  #nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 70px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
  opacity: 0.6;
}
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; filter: blur(70px); opacity: 0.55; }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { width: 520px; height: 520px; background: #6d5efc; top: -140px; left: -80px; animation: float1 16s ease-in-out infinite; }
.blob.b2 { width: 460px; height: 460px; background: #2d9cff; top: -60px; right: -60px; animation: float2 20s ease-in-out infinite; }
.blob.b3 { width: 380px; height: 380px; background: #b06dfc; bottom: -160px; left: 40%; animation: float1 18s ease-in-out infinite reverse; }
[data-theme="light"] .hero-aurora { opacity: 0.35; }
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(40px,30px) scale(1.1);} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-30px,40px) scale(1.08);} }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy { max-width: 640px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); margin-bottom: 32px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* Hero visual / browser mockup */
.hero-visual { position: relative; }
.browser-mock {
  border-radius: 16px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.tilt { transform: perspective(1200px) rotateY(-9deg) rotateX(4deg); transition: transform 0.5s var(--ease); }
.tilt:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-bar span:nth-child(1){ background:#ff5f57; } .browser-bar span:nth-child(2){ background:#febc2e; } .browser-bar span:nth-child(3){ background:#28c840; }
.browser-bar i { margin-left: 12px; font-style: normal; font-size: 0.76rem; color: var(--muted); background: var(--bg); padding: 4px 12px; border-radius: 6px; flex: 1; }
.browser-screen { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.browser-screen > img { width: 100%; height: 100%; object-fit: cover; }
.mock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px; background: linear-gradient(180deg, rgba(8,12,24,0.15), rgba(8,12,24,0.82)); }
.mock-logo { width: 84px; background: #fff; padding: 5px 9px; border-radius: 8px; }
.mock-h { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; max-width: 80%; }
.mock-badge { align-self: flex-start; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: #fff; font-size: 0.76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

.float-card { position: absolute; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.float-card strong { font-family: var(--font-head); color: var(--heading); font-size: 0.95rem; }
.float-card span { font-size: 0.76rem; color: var(--muted); }
.fc-1 { top: 16%; left: -34px; animation: bob 5s ease-in-out infinite; }
.fc-2 { bottom: 10%; right: -28px; animation: bob 6s ease-in-out infinite 0.6s; }
.fc-star { color: #ffb020; letter-spacing: 1px; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* Marquee */
.marquee { margin-top: 70px; position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; animation: scroll 26s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--muted); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(80px,11vw,150px) 0; text-align: center; }
.statement > .container > p:first-child { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.2rem); color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
.strike { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--muted); }
.statement-sub { max-width: 640px; margin: 26px auto 0; color: var(--muted); font-size: 1.08rem; }
.statement-sub strong { color: var(--text); }

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s; position: relative; overflow: hidden; }
.scard::before { content:""; position:absolute; inset:0; background: var(--accent-grad); opacity:0; transition:opacity 0.25s; mask: linear-gradient(#000,#000); }
.scard:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.scard-ic { width: 52px; height: 52px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.scard-ic svg { width: 26px; height: 26px; }
.scard h3 { font-size: 1.2rem; margin-bottom: 10px; }
.scard p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Why ---------- */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why-n { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: transparent; -webkit-text-stroke: 1.3px var(--accent); display: inline-block; margin-bottom: 16px; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 9px; }
.why-item p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(109,94,252,0.6); }
.step h3 { font-size: 1.12rem; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Projects ---------- */
.case-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px; margin-bottom: 30px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.case-featured:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.case-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.case-body h3 { font-size: 1.9rem; margin-bottom: 12px; }
.case-body > p { color: var(--muted); margin-bottom: 22px; }
.case-metrics { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 24px; }
.case-metrics strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--heading); }
.case-metrics span { font-size: 0.82rem; color: var(--muted); }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--accent); }
.case-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.case-featured:hover .case-link svg { transform: translateX(4px); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s var(--ease); }
.pcard:hover { transform: translateY(-6px); }
.pcard-media { position: relative; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.grad-a { background: linear-gradient(135deg,#6d5efc,#2d9cff); }
.grad-b { background: linear-gradient(135deg,#2d9cff,#22c1c3); }
.grad-c { background: linear-gradient(135deg,#b06dfc,#6d5efc); }
.pcard-mono { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: rgba(255,255,255,0.85); }
.pcard-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.3); backdrop-filter: blur(6px); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pcard-body { padding: 22px 22px 26px; }
.pcard-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pcard-body p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tcard .stars { color: #ffb020; letter-spacing: 2px; }
.tcard blockquote { color: var(--text); font-size: 1rem; line-height: 1.6; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.tcard figcaption strong { display: block; font-size: 0.92rem; color: var(--heading); }
.tcard figcaption span { font-size: 0.8rem; color: var(--muted); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px; position: relative; box-shadow: var(--shadow); }
.about-badge { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 18px; background: var(--accent-grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 22px; }
.about-availability { display: inline-flex; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.about-meta { display: flex; flex-direction: column; gap: 16px; }
.about-meta > div { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.about-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.about-meta span { font-size: 0.8rem; color: var(--muted); }
.about-meta strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--heading); }
.about-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p strong { color: var(--text); }
.about-copy .btn { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s; flex-shrink: 0; }
.faq-item[open] .chev { transform: rotate(-135deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner { max-width: 760px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 26px; padding: clamp(40px,6vw,64px) 30px; position: relative; overflow: hidden; }
.cta-inner::before { content:""; position:absolute; top:-60%; left:50%; transform:translateX(-50%); width:120%; height:120%; background: radial-gradient(circle, var(--accent-soft), transparent 60%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.ccard { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; transition: background 0.18s; }
a.ccard:hover { background: var(--surface-2); }
.ccard svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.ccard strong { display: block; font-size: 0.92rem; color: var(--heading); }
.ccard span { font-size: 0.88rem; color: var(--muted); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.contact-form input, .contact-form textarea { font-family: var(--font-body); font-size: 0.96rem; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); resize: vertical; transition: border-color 0.15s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { width: 100%; justify-content: center; margin-top: 6px; }
.form-status { text-align: center; font-size: 0.88rem; font-weight: 600; margin-top: 14px; }
.form-status:empty { display: none; }
.form-status.ok { color: #2ecc71; }
.form-status.error { color: #e74c3c; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text); font-size: 0.92rem; padding: 5px 0; transition: color 0.15s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90; background: var(--accent-grad); color: #fff; text-align: center; padding: 15px; border-radius: 14px; font-family: var(--font-head); font-weight: 600; box-shadow: 0 16px 40px -12px rgba(109,94,252,0.7); }

/* ---------- Case Study page ---------- */
.cs-hero { padding: clamp(40px,7vw,80px) 0 40px; position: relative; overflow: hidden; }
.cs-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; font-size: 0.9rem; margin-bottom: 24px; }
.cs-back:hover { color: var(--accent); }
.cs-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 14px 0 18px; }
.cs-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.cs-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cs-hero-tags span { font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; }
.cs-shot { margin: 40px 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 10px 0 20px; }
.cs-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.cs-fact span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cs-fact strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--heading); margin-top: 6px; }
.cs-body { max-width: 760px; margin: 0 auto; }
.cs-body h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.cs-body p { color: var(--muted); margin-bottom: 16px; }
.cs-body ul { color: var(--muted); margin: 0 0 16px 20px; }
.cs-body li { margin-bottom: 8px; }
.cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.cs-gallery img { border-radius: 14px; border: 1px solid var(--border); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
@media (max-width: 700px){ .cs-facts { grid-template-columns: repeat(2,1fr); } .cs-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal ---------- */
.legal { padding: 60px 0 90px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem,4vw,2.6rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--accent); word-break: break-word; }
.legal ul { margin: 0 0 12px 20px; }
.legal mark { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.legal-note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 0.9rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 130px 0; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem,14vw,8rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 1.9rem; margin: 6px 0 14px; }
.error-page p { color: var(--muted); max-width: 440px; margin: 0 auto 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .blob, .marquee-track, .dot { animation: none; } }

/* ---------- Light-mode polish ---------- */
[data-theme="light"] body {
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(109,94,252,0.10), transparent 55%),
    radial-gradient(900px 480px at -5% 4%, rgba(45,156,255,0.09), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="light"] .hero {
  background:
    radial-gradient(880px 460px at 76% -8%, rgba(109,94,252,0.20), transparent 60%),
    radial-gradient(720px 420px at 4% 14%, rgba(45,156,255,0.18), transparent 60%);
}
[data-theme="light"] .hero-aurora { opacity: 0.55; filter: blur(85px); }
[data-theme="light"] .blob.b1 { background:#8b7bff; }
[data-theme="light"] .blob.b2 { background:#3fb0ff; }
[data-theme="light"] .blob.b3 { background:#c58bff; }
[data-theme="light"] .scard,
[data-theme="light"] .why-item,
[data-theme="light"] .step,
[data-theme="light"] .pcard,
[data-theme="light"] .faq-item,
[data-theme="light"] .ccard,
[data-theme="light"] .cs-fact,
[data-theme="light"] .case-featured { box-shadow: var(--card-shadow); }
[data-theme="light"] .scard:hover,
[data-theme="light"] .pcard:hover,
[data-theme="light"] .case-featured:hover { box-shadow: var(--shadow); }
[data-theme="light"] .cta-inner { background:#ffffff; box-shadow: var(--shadow); }
[data-theme="light"] .pill { box-shadow: 0 6px 18px -10px rgba(45,55,130,.35); }
[data-theme="light"] .scard-ic { background: linear-gradient(135deg, rgba(109,94,252,.14), rgba(45,156,255,.10)); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 520px; }
  .tilt { transform: none; }
  .services-grid, .why-grid, .steps, .project-grid, .tgrid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-featured { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .float-card { display: none; }
}
@media (max-width: 620px) {
  .services-grid, .why-grid, .steps, .project-grid, .tgrid, .stats-grid, .footer-cols { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .mobile-cta { display: block; }
  .case-metrics { gap: 18px; }
  main { padding-bottom: 70px; }
}
