/* =========================================================
   Sg Sales — Landing styles
   Aesthetic: editorial dark, restraint, mostaza accent
   ========================================================= */

:root {
  --bg-0: #0c0e12;
  --bg-1: #14171d;
  --bg-2: #1c2028;
  --bg-3: #252a34;
  --line: #2a2f3a;
  --line-strong: #3a4050;
  --ink-1: #e8ebf2;
  --ink-2: #aab0bc;
  --ink-3: #6c7280;
  --accent: #d4b96b;
  --accent-soft: #d4b96b18;
  --accent-bright: #e2c87a;
  --hot: #e26a6a;
  --bot-tint: #2a4a3a;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg-0); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(20px);
  background: rgba(12, 14, 18, 0.7);
  border-bottom: 1px solid var(--line);
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink-1); }

.nav-cta {
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg-0) !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  transition: filter 0.15s;
}

.nav-cta:hover { filter: brightness(1.08); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 32px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, var(--accent-soft) 0%, transparent 40%),
                    radial-gradient(circle at 80% 30%, rgba(106, 163, 226, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s ease-out 0.1s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  background: var(--accent-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-1);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.meta-lbl {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-sep {
  width: 1px;
  height: 32px;
  background: var(--line);
}

/* =========================================================
   HERO MOCKUP
   ========================================================= */
.hero-mock {
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.mock-frame {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(212, 185, 107, 0.08);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.mock-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b39443);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--bg-0);
}

.mock-name {
  font-weight: 600;
  font-size: 14px;
}

.mock-status {
  font-size: 11px;
  color: #4cc38a;
  font-family: var(--font-mono);
}

.mock-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-0);
  min-height: 360px;
}

.mock-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  animation: bubble-in 0.4s ease-out both;
}

.mock-bubble:nth-child(1) { animation-delay: 0.6s; }
.mock-bubble:nth-child(2) { animation-delay: 1.0s; }
.mock-bubble:nth-child(3) { animation-delay: 1.4s; }
.mock-bubble:nth-child(4) { animation-delay: 1.8s; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-in {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink-1);
}

.mock-out {
  align-self: flex-end;
  background: var(--bot-tint);
  border: 1px solid rgba(76, 195, 138, 0.3);
  border-bottom-right-radius: 4px;
  color: #c5e8d4;
}

.mock-asset {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-bottom-right-radius: 4px;
  max-width: 78%;
  font-family: var(--font-mono);
  font-size: 12px;
  animation: bubble-in 0.4s ease-out 2.2s both;
}

.asset-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.asset-text { color: var(--ink-1); flex: 1; }
.asset-time { color: var(--ink-3); }

.mock-typing {
  align-self: flex-start;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  width: fit-content;
  animation: bubble-in 0.4s ease-out 2.6s both;
  transition: opacity 0.3s;
}

.mock-typing span {
  width: 6px;
  height: 6px;
  background: var(--ink-3);
  border-radius: 50%;
  animation: typing-pulse 1.4s infinite ease-in-out;
}

.mock-typing span:nth-child(2) { animation-delay: 0.2s; }
.mock-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.15); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-narrow { max-width: 980px; }

.section-dark {
  background: linear-gradient(180deg, transparent 0%, var(--bg-1) 30%, var(--bg-1) 70%, transparent 100%);
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}

.section-dark > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 72px;
  max-width: 800px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* =========================================================
   CARDS 3
   ========================================================= */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 36px;
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 640px;
  line-height: 1.55;
}

/* =========================================================
   VERTICALS
   ========================================================= */
.verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vert-tag {
  padding: 9px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all 0.2s;
}

.vert-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vert-tag:last-child {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.section-cta {
  max-width: none;
  padding: 140px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 185, 107, 0.04) 50%, transparent 100%);
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 22px;
}

.cta-sub {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

.cta-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
}

.cta-meta a:hover { text-decoration-color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 32px 36px;
  background: var(--bg-1);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand .brand-dot,
.footer-brand .brand-name {
  display: inline-block;
  vertical-align: middle;
}

.footer-brand .brand-dot { margin-right: 8px; }

.footer-desc {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-fine {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 110px 24px 60px;
  }
  .hero-mock { max-width: 480px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 80px 20px; }
  .section-cta { padding: 100px 20px; }
  .step { grid-template-columns: 50px 1fr; gap: 18px; }
  .step-num { font-size: 36px; }
  .hero-meta { gap: 16px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
