/* AmraCore — modern SaaS */

:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --bg-3: #11141b;
  --card: #0f131a;
  --card-2: #141923;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f5f7fa;
  --ink-2: #b4bcc9;
  --ink-3: #7c8595;
  --ink-4: #4a5364;

  --brand: #6366f1;
  --brand-2: #818cf8;
  --brand-glow: rgba(99, 102, 241, 0.45);
  --accent: #06b6d4;

  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.10), rgba(6,182,212,0.14));

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f4f5f9;
  --bg-3: #eef0f6;
  --card: #ffffff;
  --card-2: #f8f9fc;
  --line: rgba(15, 19, 26, 0.08);
  --line-2: rgba(15, 19, 26, 0.14);
  --ink: #0a0c12;
  --ink-2: #3f4756;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
}

[data-accent="indigo"] { --brand: #6366f1; --brand-2: #818cf8; --brand-glow: rgba(99,102,241,.45); --accent: #06b6d4; --grad: linear-gradient(135deg,#6366f1,#8b5cf6 50%,#06b6d4); }
[data-accent="violet"] { --brand: #8b5cf6; --brand-2: #a78bfa; --brand-glow: rgba(139,92,246,.45); --accent: #ec4899; --grad: linear-gradient(135deg,#8b5cf6,#ec4899 60%,#f59e0b); }
[data-accent="cyan"]   { --brand: #06b6d4; --brand-2: #22d3ee; --brand-glow: rgba(6,182,212,.45); --accent: #6366f1; --grad: linear-gradient(135deg,#06b6d4,#3b82f6 60%,#8b5cf6); }
[data-accent="emerald"]{ --brand: #10b981; --brand-2: #34d399; --brand-glow: rgba(16,185,129,.45); --accent: #06b6d4; --grad: linear-gradient(135deg,#10b981,#06b6d4 60%,#3b82f6); }
[data-accent="rose"]   { --brand: #f43f5e; --brand-2: #fb7185; --brand-glow: rgba(244,63,94,.45); --accent: #f59e0b; --grad: linear-gradient(135deg,#f43f5e,#f59e0b 60%,#8b5cf6); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand); color: white; }

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

/* Background ornaments */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 90%);
}
.bg-glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: var(--brand-glow);
  filter: blur(140px);
  opacity: 0.5;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 22px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
[data-theme="light"] .btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--brand-glow); background: var(--brand); color: white; }
.btn-grad {
  background: var(--grad); color: white;
  box-shadow: 0 8px 22px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  padding: 14px 24px;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--brand-glow); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--ink);
  padding: 14px 22px;
}
.btn-ghost:hover { border-color: var(--ink-2); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn-arrow { display: inline-block; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero */
.hero { padding: clamp(80px, 10vw, 140px) 0 80px; position: relative; }
.hero .bg-glow { top: -200px; left: 50%; transform: translateX(-50%); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
}
.hero-pill .badge {
  background: var(--grad); color: white;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-pill .arrow { color: var(--ink-3); margin-left: 4px; padding-right: 8px; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 7.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 auto 40px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-trust {
  margin-top: 64px;
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
  align-items: center;
}
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.hero-trust b { color: var(--ink-2); font-weight: 600; }

/* Stats */
.stats {
  position: relative; z-index: 2;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats-cell {
  background: var(--card);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.stats-cell .v {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-cell .l {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  margin-top: 8px;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Section header */
.sect-head { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.sect-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
  border-radius: 999px;
  font-size: 12px; color: var(--brand-2); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 22px;
}
[data-theme="light"] .sect-pill { color: var(--brand); }
.sect-head h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}
.sect-head h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sect-head p {
  font-size: 17px; color: var(--ink-2);
  line-height: 1.55; max-width: 56ch; margin: 0 auto;
}

/* Project cases */
.cases { display: flex; flex-direction: column; gap: 32px; }
.case {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.case:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
  box-shadow: 0 30px 60px -30px var(--brand-glow);
  transform: translateY(-2px);
}
.case-info { padding: 48px; display: flex; flex-direction: column; }
.case-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.case-tag .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #10b981;
}
.case-tag .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: livepulse 2s infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.case h3 {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 14px;
}
.case h3 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case p.lede {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 24px; max-width: 42ch;
}
.case-features {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.case-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.case-features .check {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in oklab, var(--brand) 18%, transparent);
  color: var(--brand-2);
  display: grid; place-items: center;
  margin-top: 1px;
}
[data-theme="light"] .case-features .check { color: var(--brand); }
.case-stack {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px;
}
.case-stack span {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink-2);
}
.case-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--brand-2);
  align-self: flex-start;
  transition: color .2s, gap .2s;
}
[data-theme="light"] .case-link { color: var(--brand); }
.case-link:hover { gap: 12px; }

.case-preview {
  position: relative;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 540px;
}
.case-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--brand-glow), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}
.case-preview-inner {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.case-preview-shell {
  width: 100%; height: 100%;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45), 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
}
.case-shell-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  flex-shrink: 0;
}
.case-shell-bar .dots { display: flex; gap: 6px; }
.case-shell-bar .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
}
.case-shell-bar .url {
  flex: 1;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.02em;
}
.case-shell-body { flex: 1; min-height: 0; overflow: hidden; }

.case-hint {
  position: absolute; top: 20px; right: 20px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.case-hint::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  transition: background .3s, box-shadow .3s;
}
.case:hover .case-hint::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }

@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; }
  .case-preview { border-left: none; border-top: 1px solid var(--line); min-height: 480px; }
  .case-info { padding: 32px; }
}

/* Reverse case (alternating) */
.case.reverse { grid-template-columns: 1.15fr 1fr; }
.case.reverse .case-info { order: 2; }
.case.reverse .case-preview { order: 1; border-left: none; border-right: 1px solid var(--line); }
@media (max-width: 980px) {
  .case.reverse { grid-template-columns: 1fr; }
  .case.reverse .case-info { order: 2; }
  .case.reverse .case-preview { order: 1; border-right: none; border-bottom: 1px solid var(--line); border-top: none; }
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, background .3s;
}
.service::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: var(--card-2);
}
.service:hover::before { opacity: 1; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 28%, transparent);
  display: grid; place-items: center;
  color: var(--brand-2);
  margin-bottom: 22px;
}
[data-theme="light"] .service-icon { color: var(--brand); }
.service h4 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service p {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  flex: 1;
}
.service .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.service .tags span {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Approach */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-num {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  color: var(--brand-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 50px;
  display: flex; align-items: center; gap: 10px;
}
[data-theme="light"] .step-num { color: var(--brand); }
.step-num::before {
  content: ''; width: 24px; height: 1px; background: var(--brand);
}
.step h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step p {
  font-size: 14px; color: var(--ink-2); line-height: 1.6;
}
.step-big {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 64px; font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.85;
  line-height: 1;
}
@media (max-width: 880px) { .approach { grid-template-columns: 1fr; } }

/* CTA */
.cta-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px);
  text-align: center;
  background:
    radial-gradient(1000px 500px at 50% 100%, var(--brand-glow), transparent 60%),
    var(--card);
  border: 1px solid var(--line-2);
}
.cta-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}
.cta-wrap > * { position: relative; z-index: 2; }
.cta-wrap h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-wrap: balance;
}
.cta-wrap h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-wrap p {
  font-size: 17px; color: var(--ink-2);
  max-width: 50ch; margin: 0 auto 32px;
  line-height: 1.55;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-meta {
  margin-top: 48px;
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.cta-meta b { color: var(--ink); font-weight: 600; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot h5 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin-bottom: 16px;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot-tag {
  margin-top: 14px;
  font-size: 14px; color: var(--ink-3); max-width: 36ch; line-height: 1.55;
}
.foot-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

