/* ============================================
   Shiny Logic — shinylogic.com
   Premium minimal · black / gray / white
   ============================================ */

:root {
  --ink: #0b0b0c;
  --ink-soft: #2a2a2e;
  --gray-1: #f6f6f7;
  --gray-2: #e9e9eb;
  --gray-3: #c9c9ce;
  --gray-4: #8a8a92;
  --gray-5: #55555c;
  --white: #ffffff;
  --shine: linear-gradient(110deg, #d8d8dd 0%, #ffffff 45%, #b9b9c2 100%);
  --radius: 10px;
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo svg { height: 30px; width: 30px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); }
/* Header CTA button: always white text, even on hover/active */
.nav a.btn-dark, .nav a.btn-dark:hover, .nav a.btn-dark.active { color: var(--white); }

.nav .dropdown { position: relative; }
.nav .dropdown > a::after { content: " ▾"; font-size: .7em; }
.nav .dropdown-menu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  padding: 8px; display: none;
}
.nav .dropdown:hover .dropdown-menu { display: block; }
.nav .dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink-soft);
}
.nav .dropdown-menu a:hover { background: var(--gray-1); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: all .18s; cursor: pointer;
  border: 1px solid var(--ink); line-height: 1.4;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gray-1); }
.btn-ghost { border-color: var(--gray-3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-2);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav .dropdown-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .nav .btn { margin-top: 10px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--white);
  padding: 110px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255,255,255,.07), transparent),
    radial-gradient(ellipse 40% 40% at 20% 90%, rgba(255,255,255,.05), transparent);
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--gray-3); }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.08;
  max-width: 17ch;
}
.hero h1 .shine {
  background: var(--shine);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 26px 0 38px; font-size: 1.2rem; color: var(--gray-3); max-width: 54ch;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero .btn-dark:hover { background: var(--gray-2); }
.hero .btn-ghost { border-color: var(--gray-5); color: var(--white); }
.hero .btn-ghost:hover { border-color: var(--white); }

/* Inner page hero (smaller) */
.page-hero { padding: 80px 0 70px; }
.page-hero h1 { max-width: 22ch; }
.page-hero p.lead { margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.tint { background: var(--gray-1); }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 600; color: var(--gray-4); margin-bottom: 14px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; color: var(--gray-5); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); padding: 32px 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.07); transform: translateY(-3px); border-color: var(--gray-3); }
.card .icon {
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-5); font-size: .96rem; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .9rem; }
.card .more::after { content: " →"; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--gray-2); line-height: 1; margin-bottom: 14px;
  -webkit-text-stroke: 1px var(--gray-3);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-5); font-size: .95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { padding-left: 32px; position: relative; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.checklist li strong { color: var(--ink); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); text-align: center; padding: 96px 0; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--gray-3); max-width: 52ch; margin: 0 auto 36px; font-size: 1.1rem; }
.cta-band .btn-dark { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band .btn-dark:hover { background: var(--gray-2); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem;
  border: 1px solid var(--gray-3); border-radius: 8px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,12,.08);
}
textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--gray-4); margin-top: 16px; }

/* ---------- Contact info ---------- */
.info-list { display: grid; gap: 22px; }
.info-list .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-4); font-weight: 600; }
.info-list .value { font-size: 1.1rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--gray-4); padding: 64px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--ink-soft); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.stat { text-align: left; }
.stat .n { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.stat .l { color: var(--gray-5); font-size: .9rem; }
