/* Grainfield Landing Page Styles */
:root {
  --bg: #0C0C0F;
  --surface: #141418;
  --surface-2: #1C1C22;
  --border: #2A2A35;
  --fg: #F5F5F0;
  --fg-dim: #8A8A9A;
  --fg-muted: #55556A;
  --accent: #00E896;
  --accent-dim: rgba(0, 232, 150, 0.12);
  --t-green: #00E896;
  --t-white: #E8E8E0;
  --t-dim: #55556A;
  --t-yellow: #F5C842;
  --t-red: #FF6B6B;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 6rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.hero-visual { display: flex; align-items: center; }

.terminal-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.terminal-bar {
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #F5C842; }
.dot.green { background: #00E896; }

.terminal-title {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-left: 0.5rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 300px;
}

.terminal-line { font-size: 0.8rem; line-height: 1.5; }
.t-dim { color: var(--t-dim); margin-right: 0.5rem; }
.t-green { color: var(--t-green); }
.t-white { color: var(--t-white); }
.t-blank { height: 0.5rem; }

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 8rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-icon {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ===== HOW ===== */
.how {
  padding: 8rem 6rem;
  background: var(--surface);
  max-width: 100%;
}

.how-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
}

.step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}

.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: 2rem; }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.step-content p {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ===== OUTCOMES ===== */
.outcomes {
  padding: 8rem 6rem;
  background: var(--bg);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 5rem;
}

.outcome-statement h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.outcome-statement p {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

.outcome-metrics {
  display: grid;
  gap: 2rem;
}

.metric {}

.metric-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

.outcomes-cta {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.outcomes-cta p {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 10rem 6rem 8rem;
  background: var(--surface);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.closing > .closing-inner > p {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.closing-vision {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.closing-vision p {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem 6rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 6rem 3rem 4rem; }
  .hero-visual { display: none; }
  .features { padding: 5rem 3rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 0; }
  .step:not(:first-child) { padding-left: 0; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-divider { display: none; }
  .features { padding: 4rem 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; border-radius: 8px; }
  .how { padding: 4rem 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .outcomes { padding: 4rem 1.5rem; }
  .closing { padding: 5rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
