/* ===== TitanLogicAI — styles ===== */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #121110;
  --surface:   #1a1816;
  --surface-2: #262220;
  --border:    rgba(255, 122, 24, 0.20);
  --text:      #f6f1ea;
  --muted:     #b3a89c;
  --primary:   #ff7a18;
  --accent:    #ffae42;
  --ring:      rgba(255, 122, 24, 0.42);
  --radius:    18px;
  --maxw:      1140px;
  --grad:      linear-gradient(120deg, #ff8a2b 0%, #ff4d00 100%);
  --shadow:    0 20px 60px rgba(0, 0, 0, 0.6);
  --font:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:   'Manrope', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.grad-text {
  background: linear-gradient(120deg, #ffb347 0%, #ff7a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .8rem;
}
.hero-text .eyebrow { font-size: .98rem; letter-spacing: .2em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #f4f5f7 0%, #c6cad0 47%, #969ca3 53%, #c9cdd2 100%);
  color: #16130f;
  border: 1px solid #717880;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 1px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .45);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d2d6db 47%, #a4aab1 53%, #d8dce1 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(0, 0, 0, .25), 0 12px 28px rgba(0, 0, 0, .5);
}
.btn-ghost {
  background: linear-gradient(180deg, #1e1812 0%, #14100b 100%); /* opaque: sits on top, hides circuits */
  color: var(--text);
  border-color: rgba(220, 226, 234, .38);
}
.btn-ghost:hover { background: linear-gradient(180deg, #271f17 0%, #1a140d 100%); border-color: rgba(220, 226, 234, .6); transform: translateY(-2px); }
.btn-consult { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; text-shadow: none; }
.btn-consult:hover { background: var(--accent); color: #16130f; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 138, 43, .28); }
.btn-sm  { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-lg  { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; margin-top: .5rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* fades from a soft warm tint at the very top into the hero gradient below */
  background: linear-gradient(180deg, rgba(14, 8, 3, 0.78) 0%, rgba(14, 8, 3, 0.30) 55%, rgba(14, 8, 3, 0) 100%);
  border-bottom: none;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo strong { color: #fff; font-weight: 500; }
.logo .lt-accent { color: #ff8c14; font-weight: 800; }
.logo-mark { display: inline-flex; width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #0a0e22; }
.nav-socials { display: inline-flex; align-items: center; gap: .7rem; }
.nav-social { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color .2s, transform .15s; }
.nav-social:hover { color: var(--accent); transform: translateY(-2px); }
.nav-social svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 96px 0 56px; overflow: hidden; background: radial-gradient(120% 90% at 70% -10%, #2a1505 0%, var(--bg) 58%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.5rem; }
.hero-text { max-width: 600px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 560px; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.hero-visual { display: grid; place-items: center; }
.hero-visual img { width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 20px 60px rgba(255, 90, 0, 0.35)); }

/* ===== Sections ===== */
.section { padding: clamp(60px, 10vw, 110px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2.one-line { white-space: nowrap; max-width: none; }
#about .section-head { max-width: none; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--ring); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--primary); margin-bottom: 1.1rem; }
.card-icon svg { width: 28px; height: 28px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem 1.6rem; position: relative; }
.step-num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #0a0e22; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.step p { color: var(--muted); margin: 0; }

/* ===== Split / Benefits ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #0a0e22; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

.split-visual { display: grid; place-items: center; }
.brand-art { width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 20px 55px rgba(255, 90, 0, 0.32)); }

/* ===== Quotes ===== */
.quote { margin: 0; }
.quote p { font-size: 1.02rem; color: var(--text); }
.quote footer { color: var(--accent); font-weight: 600; font-size: .9rem; }
.disclaimer { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 2rem; }

/* ===== FAQ ===== */
.faq { display: grid; gap: .9rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.4rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--ring); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0; padding: 0 0 1.3rem; }
.faq-cta { text-align: center; margin-top: 2.6rem; }
.faq-cta p { color: var(--muted); margin: 0 0 1.1rem; }

.about-text { text-align: center; }
.about-text p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 680px; margin: 0 auto 1.2rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ===== CTA / Form ===== */
.section-cta { background: radial-gradient(110% 80% at 50% 0%, #2a1505 0%, var(--bg) 65%); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 2.4rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b73a0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { resize: vertical; }
.form-foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.form-foot a { color: var(--accent); }
.form-success { margin-top: 1rem; text-align: center; background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .4); border-radius: 12px; padding: 1rem; color: var(--text); font-weight: 600; }
.form-error { margin-top: 1rem; text-align: center; background: rgba(255, 90, 0, .12); border: 1px solid rgba(255, 90, 0, .4); border-radius: 12px; padding: 1rem; color: var(--text); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-brand { max-width: 320px; }
.footer-logo { width: 150px; height: auto; display: block; filter: drop-shadow(0 8px 22px rgba(255, 90, 0, 0.28)); }
.footer-brand p { color: var(--muted); margin: .8rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* Social icons */
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .15s ease, border-color .2s, background .2s;
}
.socials a:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-bottom p { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.footer-bottom .small { font-size: .76rem; opacity: .8; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .hero-text { max-width: 640px; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 380px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 1rem 24px; transform: translateY(-150%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
  /* CTA button: restore its own pill padding/border, center it, give it breathing room */
  .nav-links a.btn-consult {
    align-self: center; width: auto;
    margin: 1.1rem auto .3rem; padding: .7rem 2.2rem;
    border: 1px solid var(--accent); border-radius: 999px;
  }
  /* social icons are not text links — drop the divider/padding they inherit */
  .nav-links .nav-socials { justify-content: center; padding-top: .6rem; }
  .nav-links .nav-social { padding: 0; border-bottom: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 1.6rem; }
  .section-head h2.one-line { white-space: normal; }
}
