/* FreeClaudeAI — dark technical theme.
   All artwork is CSS or inline SVG, so the page renders with no network. */

:root {
  --bg:        #080b10;
  --bg-raise:  #0d1117;
  --bg-card:   #0f151d;
  --line:      #1d2733;
  --line-soft: #16202b;
  --text:      #e6edf3;
  --text-dim:  #8b98a8;
  --text-mute: #5c6a7a;
  --accent:    #36e0a0;
  --accent-dim:#1c8f66;
  --danger:    #ff6b6b;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --radius:    12px;
  --maxw:      1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 640; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 620; }
h3 { font-size: 1.06rem; font-weight: 620; }
p  { margin: 0 0 1rem; color: var(--text-dim); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 620; }
.accent { color: var(--accent); }

/* --- background layers ------------------------------------------------- */

.grid-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.033) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.033) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

.glow {
  position: fixed; z-index: -2; pointer-events: none;
  width: 46rem; height: 46rem; border-radius: 50%;
  filter: blur(120px); opacity: .3;
}
.glow-a { top: -20rem; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent) 0%, transparent 68%); }
.glow-b { top: 42rem; right: -18rem; background: radial-gradient(circle, #2b6cff 0%, transparent 70%); opacity: .18; }

/* --- header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.4rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(8,11,16,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-weight: 660; letter-spacing: -.02em; font-size: 1.05rem; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--text-dim); font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* --- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; border-radius: 9px;
  padding: .62rem 1.1rem; cursor: pointer;
  transition: transform .13s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem .9rem; font-size: .875rem; }
.btn-lg { padding: .82rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent); color: #04140d;
  box-shadow: 0 0 0 1px rgba(54,224,160,.5), 0 8px 26px -10px rgba(54,224,160,.6);
}
.btn-primary:hover { background: #47eeb0; box-shadow: 0 0 0 1px rgba(54,224,160,.7), 0 12px 32px -10px rgba(54,224,160,.75); }

.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: #2a3a4a; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- layout ------------------------------------------------------------ */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0 1rem; }
.section-eyebrow, .eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-eyebrow { color: var(--text-mute); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* --- hero -------------------------------------------------------------- */

.hero { padding: 6rem 0 3rem; max-width: 46rem; }
.lede { font-size: 1.1rem; color: var(--text-dim); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.9rem 0 1rem; }
.fine-print { font-size: .84rem; color: var(--text-mute); margin: 0; }

.stats {
  display: flex; flex-wrap: wrap; gap: 2.6rem;
  margin: 3.2rem 0 0; padding-top: 1.7rem;
  border-top: 1px solid var(--line-soft);
}
.stats div { display: flex; flex-direction: column; }
.stats dt { font-family: var(--font-mono); font-size: 1.15rem; color: var(--text); font-weight: 600; }
.stats dd { margin: 0; font-size: .82rem; color: var(--text-mute); }

/* --- cards ------------------------------------------------------------- */

.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin-top: 2rem;
}
.card {
  background: linear-gradient(170deg, var(--bg-card), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #2b3d4d; transform: translateY(-2px); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .92rem; margin: 0; }
.card-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: .9rem;
  color: var(--accent); background: rgba(54,224,160,.09);
  border: 1px solid rgba(54,224,160,.22);
}

/* --- steps ------------------------------------------------------------- */

.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: s; }
.steps li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; background: var(--bg-raise);
}
.step-num { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.steps h3 { margin: .5rem 0 .4rem; }
.steps p { font-size: .92rem; margin: 0; }

/* --- faq --------------------------------------------------------------- */

.faq { margin-top: 2rem; display: grid; gap: .6rem; max-width: 48rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-raise); padding: .2rem .1rem;
}
.faq summary {
  cursor: pointer; padding: .85rem 1.1rem; font-weight: 560;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 1.1rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.1rem .9rem; margin: 0; font-size: .93rem; }

/* --- cta band ---------------------------------------------------------- */

.cta-band {
  margin: 5rem 0 0; padding: 3.2rem 2rem; text-align: center;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(54,224,160,.10), transparent 70%),
    var(--bg-raise);
}
.cta-band p { max-width: 30rem; margin: 0 auto 1.6rem; }

/* --- footer ------------------------------------------------------------ */

.site-footer {
  max-width: var(--maxw); margin: 5rem auto 0; padding: 2.6rem 1.5rem 3rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
/* Centred column. The footer used to hold two side-by-side blocks; with only
   one left, a centred stack reads better than a left-aligned grid. */
.footer-top { display: flex; flex-direction: column; align-items: center; }
.footer-note {
  font-size: .85rem; color: var(--text-mute); margin: .5rem auto 0;
  max-width: 34rem;
}
.copyright { font-size: .8rem; color: var(--text-mute); margin: 2.4rem 0 0; }

/* --- modal ------------------------------------------------------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(3,6,9,.76); backdrop-filter: blur(7px);
  animation: fade .16s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.modal {
  position: relative; width: 100%; max-width: 27rem;
  background: linear-gradient(175deg, #121a23, var(--bg-card));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.8rem 1.7rem;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(54,224,160,.07);
  animation: rise .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }

.modal-close {
  position: absolute; top: .7rem; right: .8rem;
  background: none; border: 0; color: var(--text-mute);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .2rem .4rem;
}
.modal-close:hover { color: var(--text); }

.modal-body[hidden] { display: none; }
.modal-lede { font-size: .93rem; }

.field { display: block; margin-bottom: .4rem; }
.field-label { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: .35rem; font-weight: 520; }
.field input {
  width: 100%; font: inherit; font-size: .97rem;
  padding: .7rem .85rem; color: var(--text);
  background: #0a0e14; border: 1px solid var(--line);
  border-radius: 9px; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: #46535f; }
.field input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(54,224,160,.13); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,107,107,.12); }

.field-error { color: var(--danger); font-size: .84rem; margin: .45rem 0 .8rem; }
.field-error[hidden] { display: none; }

#signup-form .btn { margin-top: 1rem; }
.spinner { display: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(4,20,13,.3); border-top-color: #04140d; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
#submit-btn.loading .spinner { display: inline-block; }
#submit-btn.loading .btn-label { opacity: .75; }

/* Kept after the modal disclosure text was removed from the page, because the
   modal still uses this spacing rule for its own layout. */
.modal-disclosure { font-size: .76rem; color: var(--text-mute); margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-soft); }

.result { text-align: center; }
.result-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.result-icon.ok  { color: var(--accent); background: rgba(54,224,160,.1);  border: 1px solid rgba(54,224,160,.3); }
.result-icon.bad { color: var(--danger); background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); }
.result-message { color: var(--text); font-size: 1rem; }
.result-hint { font-size: .84rem; color: var(--text-mute); }
.result .btn { margin-top: .8rem; }

/* --- responsive -------------------------------------------------------- */

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { gap: .8rem; }
  .hero { padding-top: 3.4rem; }
  .stats { gap: 1.6rem; }
  .section { padding-top: 3.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
