/* =========================================================
   TriforceLogic — styles
   Brand: gold #F4BD21 · orange #FC8C38 · red #EF3F3F · charcoal #322F30
   ========================================================= */

:root {
  --gold: #F4BD21;
  --orange: #FC8C38;
  --red: #EF3F3F;
  --charcoal: #322F30;
  --ink: #1f1d1e;
  --slate: #5b5658;
  --muted: #8a8385;
  --line: #ece8e6;
  --bg: #ffffff;
  --bg-tint: #fbf7f4;
  --bg-dark: #26211f;
  --bg-dark-2: #322b28;

  --grad: linear-gradient(135deg, var(--gold) 0%, var(--orange) 45%, var(--red) 100%);
  --grad-soft: linear-gradient(135deg, rgba(244,189,33,.14), rgba(239,63,63,.14));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(38,33,31,.06), 0 1px 2px rgba(38,33,31,.04);
  --shadow: 0 12px 32px -12px rgba(38,33,31,.18);
  --shadow-lg: 0 30px 60px -20px rgba(38,33,31,.28);

  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4, p, .lead { overflow-wrap: break-word; }

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); background-origin: border-box; color: #fff; box-shadow: 0 8px 20px -8px rgba(239,63,63,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(239,63,63,.6); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--red); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.hero-logo, .about-logo {
  width: clamp(220px, 32vw, 360px); height: auto;
  filter: drop-shadow(0 18px 34px rgba(239,63,63,.20));
}
.footer-logo { height: 58px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-weight: 600; font-size: 15px; color: var(--slate); transition: color .15s ease; }
.nav > a:hover { color: var(--red); }
.nav > a.btn { color: #fff; }
.nav > a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 22px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--charcoal); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 12px; color: #fff; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 9vw, 104px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 420px at 88% -8%, rgba(252,140,56,.20), transparent 60%),
    radial-gradient(620px 460px at 100% 30%, rgba(239,63,63,.16), transparent 62%),
    radial-gradient(560px 420px at 6% 100%, rgba(244,189,33,.14), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: var(--grad-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow.light { color: var(--gold); background: rgba(255,255,255,.08); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--slate); max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--slate); font-size: 14.5px; }
.hero-trust li { position: relative; padding-left: 22px; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.hero-trust strong { color: var(--charcoal); }
.hero-art { display: flex; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--bg-dark); color: #f3efec; }
.section-dark .lead, .section-dark .section-head p { color: #c5bdb8; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px;
  border-radius: 14px; background: var(--grad-soft); margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }

/* ---------- Capabilities ---------- */
.cap-grid { grid-template-columns: repeat(4, 1fr); }
.cap {
  background: var(--bg-dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-sm);
  padding: 26px 22px; text-align: center; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(252,140,56,.5); background: #382f2b; }
.cap span { font-size: 30px; }
.cap h4 { font-size: 16px; margin: 12px 0 6px; color: #fff; font-weight: 700; }
.cap p { font-size: 13px; color: #b3aaa5; margin: 0; }

/* ---------- Feature (PageFeed) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-copy h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 18px; }
.feature-copy p { color: var(--slate); font-size: 17px; margin-bottom: 16px; }
.feature-actions { margin-top: 8px; }
.feature-art { display: flex; justify-content: center; }
.phone {
  position: relative; width: 240px; height: 480px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #3a3330, #211c1a); box-shadow: var(--shadow-lg);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #1a1614; border-radius: 999px; z-index: 2; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; background: var(--grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.phone-mark { width: 104px; height: 104px; object-fit: contain; background: #fff; padding: 18px; border-radius: 24px; box-shadow: 0 8px 16px rgba(0,0,0,.25); }
.phone-app { color: #fff; font-weight: 800; font-size: 24px; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ---------- Steps ---------- */
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step-num { font-size: 16px; font-weight: 900; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 15px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 18px; }
.about-copy p { color: var(--slate); font-size: 17px; margin-bottom: 16px; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--charcoal); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.about-art { display: flex; justify-content: center; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 16px; }
.contact-copy > p { color: #c5bdb8; font-size: 17px; margin-bottom: 26px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #e7e1dd; }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--charcoal); margin-bottom: 7px; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252,140,56,.18);
}
.field input.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,63,63,.15); }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #1f9d55; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc8c4; padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 380px; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; color: #a59d99; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { font-size: 15px; font-weight: 600; color: #cfc8c4; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { font-size: 13.5px; color: #8e8682; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-logo, .about-logo { width: clamp(200px, 46vw, 300px); }
  .feature, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-art { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}

@media (max-width: 520px) {
  .services-grid, .cap-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
