/* ====================================================
   GRACE AI — One-Page Site
   Inspired by link-v.pro design language
   ==================================================== */

:root {
  --bg:          #141414;
  --bg-2:        #1a1a1a;
  --bg-card:     #1e1e1e;
  --bg-card-h:   #242424;
  --font:        #ffffff;
  --font-muted:  rgba(255,255,255,0.55);
  --accent:      #F2B61F;   /* Grace gold */
  --green:       #41D857;   /* highlight green */
  --blue:        #27A7D8;   /* Timeless blue */
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(242,182,31,0.35);
  --raleway:     'Raleway', sans-serif;
  --michroma:    'Michroma', sans-serif;
  --radius:      10px;
  --nav-h:       64px;
  --max-w:       1200px;
  --section-gap: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--font);
  font-family: var(--raleway);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6,p,ul,ol { margin-top: 0; }

/* ────── TYPOGRAPHY ────── */
.Accent { color: var(--accent); }

/* ════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════ */
#Nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.NavInner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.NavLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--michroma);
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.NavLinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  align-items: center;
}

.NavLinks a {
  font-size: 15px;
  color: var(--font-muted);
  transition: color 0.15s;
  letter-spacing: 0.03em;
}
.NavLinks a:hover { color: var(--font); }

.NavCTA {
  border: 1px solid var(--green) !important;
  color: var(--font) !important;
  padding: 7px 22px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.15s !important;
}
.NavCTA:hover { background: rgba(65,216,87,0.12) !important; }

.NavBurger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.NavBurger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--font);
  border-radius: 2px;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .NavBurger { display: flex; }
  .NavLinks {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: #1a1a1a;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  #Nav.Open .NavLinks { display: flex; }
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
#Hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.HeroGlow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(242,182,31,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.HeroContent {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.HeroLabel {
  font-family: var(--michroma);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.HeroContent h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.HeroSub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--font-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.HeroBtns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Terminal ── */
.HeroVisual {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.TerminalWrap {
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(242,182,31,0.1);
}

.TerminalBar {
  background: #1c1c1c;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.TDot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.TDot.Red    { background: #ff5f57; }
.TDot.Yellow { background: #febc2e; }
.TDot.Green  { background: #28c840; }

.TTitle {
  margin-left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.TerminalBody {
  padding: 20px 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.TLine { display: flex; gap: 8px; align-items: baseline; }
.TBlank { height: 10px; }

.TPrompt { color: var(--accent); flex-shrink: 0; }
.TCmd    { color: #e0e0e0; }
.TOut    { color: rgba(255,255,255,0.45); padding-left: 16px; }
.TOut.accent { color: var(--green); }

.TCursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  margin-left: 4px;
  margin-top: 8px;
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

@media (max-width: 900px) {
  #Hero { flex-direction: column; min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .HeroContent, .HeroVisual { max-width: 100%; }
}

/* ════════════════════════════════════════════
   TRUST BAR
   ════════════════════════════════════════════ */
.TrustBar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.TrustInner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.TrustItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.TrustNum {
  font-family: var(--michroma);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.TrustLabel {
  font-size: 13px;
  color: var(--font-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.TrustDivider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .TrustItem { padding: 12px 24px; }
  .TrustDivider { display: none; }
}

/* ════════════════════════════════════════════
   SECTIONS — shared
   ════════════════════════════════════════════ */
.Section {
  padding: var(--section-gap) 24px;
}

.SectionDark {
  background: var(--bg-2);
}

.SectionInner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.SectionLabel {
  font-family: var(--michroma);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.Section h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.SectionSub {
  font-size: 18px;
  color: var(--font-muted);
  max-width: 600px;
  margin-bottom: 64px;
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   BUTTON
   ════════════════════════════════════════════ */
.Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border-radius: 5px;
  border: 1px solid var(--green);
  font-family: var(--raleway);
  font-size: 16px;
  font-weight: 700;
  color: var(--font);
  background: transparent;
  cursor: pointer;
  transition: background 0.125s, box-shadow 0.125s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.Button:hover { background: rgba(255,255,255,0.08); }

.BoldButton {
  background: var(--green);
  border-color: var(--green);
  color: #111;
}
.BoldButton:hover {
  background: var(--green);
  box-shadow: 0 0 20px rgba(65,216,87,0.4);
}

/* ════════════════════════════════════════════
   CAPABILITIES GRID
   ════════════════════════════════════════════ */
.CapGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.CapCard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.CapCard:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-3px);
}

.CapIcon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}
.CapIcon svg { width: 100%; height: 100%; }

.CapCard h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.CapCard p {
  font-size: 15px;
  color: var(--font-muted);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.StepsRow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.Step {
  flex: 1;
  min-width: 200px;
  padding: 0 24px;
}

.Step:first-child { padding-left: 0; }
.Step:last-child  { padding-right: 0; }

.StepNo {
  font-family: var(--michroma);
  font-size: 40px;
  color: rgba(242,182,31,0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.Step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.Step p {
  font-size: 15px;
  color: var(--font-muted);
  line-height: 1.6;
  margin: 0;
}

.StepArrow {
  font-size: 28px;
  color: rgba(255,255,255,0.15);
  padding-top: 10px;
  flex-shrink: 0;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .StepsRow { flex-direction: column; gap: 36px; }
  .StepArrow { display: none; }
  .Step { padding: 0; }
}

/* ════════════════════════════════════════════
   USE CASES
   ════════════════════════════════════════════ */
.UseCaseGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.UseCase {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}

.UseCase:hover {
  border-color: rgba(39,167,216,0.35);
  transform: translateY(-3px);
}

.UseCaseTag {
  font-family: var(--michroma);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.UseCase h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.UseCase p {
  font-size: 15px;
  color: var(--font-muted);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════
   QUOTE
   ════════════════════════════════════════════ */
.QuoteSection {
  background: linear-gradient(to bottom, rgba(30,30,30,0), rgba(30,30,30,1) 50%, rgba(30,30,30,0));
  padding: 80px 24px;
  text-align: center;
}

.QuoteInner {
  max-width: 680px;
  margin: 0 auto;
}

.QuoteMark {
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.5;
  margin-bottom: 16px;
}

.QuoteInner p {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 24px;
}

.QuoteAuthor {
  font-size: 14px;
  color: var(--font-muted);
}

.QuoteAuthor a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */
.ContactInner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .ContactInner { grid-template-columns: 1fr; gap: 48px; }
}

.ContactText h2 {
  margin-bottom: 20px;
}

.ContactText p {
  font-size: 16px;
  color: var(--font-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.ContactBullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ContactBullets li {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

/* FORM */
.Form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: var(--font-muted);
  letter-spacing: 0.04em;
}

.Form input,
.Form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: var(--raleway);
  font-size: 16px;
  color: var(--font);
  resize: vertical;
  transition: border-color 0.15s;
  outline: none;
}

.Form input:focus,
.Form textarea:focus {
  border-color: rgba(242,182,31,0.5);
  background: rgba(255,255,255,0.07);
}

.Form input::placeholder,
.Form textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.FormBtn {
  text-align: right;
  margin-top: 4px;
}

.FormBtn .Button {
  box-shadow: 2px 2px 0px var(--blue), -2px -2px 0px var(--accent);
  border-color: var(--green);
}
.FormBtn .Button:hover {
  box-shadow: 2px 2px 8px var(--blue), -2px -2px 8px var(--accent);
}

.FormSuccess {
  display: none;
  font-size: 15px;
  color: var(--green);
  text-align: right;
  padding-top: 4px;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
#Footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
}

.FooterInner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.FooterLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--michroma);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}

.FooterLinks {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.FooterLinks a {
  font-size: 14px;
  color: var(--font-muted);
  transition: color 0.15s;
}
.FooterLinks a:hover { color: var(--font); }

.FooterCopy {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

.FooterCopy a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.FooterCopy a:hover {
  color: rgba(255,255,255,0.7);
}
