/* ═══════════════════════════════════════════════════════════════════════════
   AskOdin.org — main stylesheet
   Ported 1:1 from the Claude Design handoff (Home.html).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --bg-0:         #0a0a0a;
  --bg-1:         #141414;
  --bg-2:         #1c1c1c;
  --line:         #232323;
  --line-2:       #2c2c2c;
  --copper:       #a65e2e;
  --copper-soft:  rgba(166, 94, 46, 0.18);
  --violet:       #7a3fcf;
  --violet-soft:  rgba(122, 63, 207, 0.18);
  --silver:       #c8c8c8;
  --silver-dim:   #8a8a8a;
  --silver-faint: #5a5a5a;
  --green:        #4ade80;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--silver);
  font-family: 'Karla', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: #fff; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.hand { font-family: 'Architects Daughter', cursive; font-weight: 400; }

/* ══ Two-pane shell ════════════════════════════════════════════════════════ */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .pane-brand { min-height: 70vh; }
}

/* ══ Brand pane (left) ═════════════════════════════════════════════════════ */
.pane-brand {
  position: relative;
  background: var(--bg-0);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

/* Radial glow overlays */
.pane-brand::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 12% 30%, rgba(166, 94, 46, 0.10), transparent 60%),
    radial-gradient(700px 600px at 90% 90%, rgba(122, 63, 207, 0.08), transparent 60%);
  pointer-events: none;
}

/* Subtle grid texture */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ── Brand top bar ─────────────────────────────────────────────────────── */
.brand-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  display: grid; place-items: center;
  position: relative;
}
.logo-mark::before {
  content: '';
  position: absolute; inset: -1px;
  border: 1px solid var(--copper);
  opacity: 0.45;
  transform: translate(3px, 3px);
}
.logo-mark svg { display: block; }

.logo-name {
  font-family: 'Karla', sans-serif;
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; color: #ededed;
}
.logo-name .dot { color: var(--copper); }

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--silver-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Brand mid (headline block) ────────────────────────────────────────── */
.brand-mid {
  position: relative; z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Architects Daughter', cursive;
  font-size: 14px; color: var(--silver-dim);
  letter-spacing: 0.02em; margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

h1.headline {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: #f0f0f0;
  text-wrap: balance;
}
h1.headline .accent-copper { color: var(--copper); }
h1.headline .accent-violet { color: var(--violet); }
h1.headline .ital {
  font-family: 'Architects Daughter', cursive;
  font-weight: 400; letter-spacing: 0;
  font-size: 0.92em;
  display: inline-block;
  transform: translateY(0.04em);
}

.sub {
  font-size: 17px; line-height: 1.55;
  color: var(--silver-dim);
  max-width: 480px; margin: 0 0 36px;
}
.sub strong { color: var(--silver); font-weight: 500; }

/* Feature row */
.features {
  display: flex; flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.feature {
  flex: 1 1 200px;
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.feature:last-child  { border-right: none; padding-right: 0; }
.feature:not(:first-child) { padding-left: 24px; }
.feature-num {
  font-family: 'Architects Daughter', cursive;
  font-size: 13px; color: var(--copper);
  margin-bottom: 8px; letter-spacing: 0.04em;
}
.feature-title {
  font-size: 15px; color: #ededed; font-weight: 600;
  margin-bottom: 4px; letter-spacing: -0.01em;
  font-family: 'Karla', sans-serif;
}
.feature-desc {
  font-size: 13.5px; color: var(--silver-faint);
  line-height: 1.5;
  font-family: 'Karla', sans-serif;
}

/* ── Terminal ticker ───────────────────────────────────────────────────── */
.brand-foot {
  position: relative; z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--silver-faint);
  letter-spacing: 0.06em;
}

.ticker {
  position: relative; z-index: 2;
  margin-top: 28px;
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.ticker-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--silver-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ticker-head .lights { display: flex; gap: 6px; }
.ticker-head .lights span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
}
.ticker-head .lights span:first-child { background: var(--copper); }

.ticker-body {
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.7;
  color: var(--silver-dim);
  height: 96px; overflow: hidden;
}
.ticker-line { white-space: nowrap; }
.ticker-line .tk-tag   { color: var(--copper); }
.ticker-line .tk-tag-v { color: var(--violet); }
.ticker-line .tk-ok    { color: var(--green); }
.ticker-line .tk-dim   { color: var(--silver-faint); }

/* ══ Auth pane (right) ═════════════════════════════════════════════════════ */
.pane-auth {
  position: relative;
  background: var(--bg-1);
  padding: 40px 56px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}

/* Top bar */
.auth-top {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 16px; font-size: 13px; color: var(--silver-dim);
}
.auth-new-here {
  font-size: 11px; color: var(--silver-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-top a {
  color: var(--silver); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.auth-top a:hover { border-bottom-color: var(--copper); }

/* Auth card */
.auth-card {
  width: 100%; max-width: 420px;
  margin: 0 auto; align-self: center;
}

.auth-heading {
  font-family: 'Karla', sans-serif;
  font-weight: 600; font-size: 32px;
  line-height: 1.1; letter-spacing: -0.02em;
  color: #f0f0f0; margin: 0 0 8px;
}
.auth-heading .accent { color: var(--copper); }

.auth-sub {
  color: var(--silver-dim); font-size: 15px;
  margin: 0 0 32px; line-height: 1.5;
  font-family: 'Karla', sans-serif;
}

/* Tabs */
.tabs {
  display: flex; gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line-2);
  padding: 4px;
  background: var(--bg-0);
}
.tab {
  flex: 1;
  background: transparent; border: none;
  color: var(--silver-dim);
  font-family: 'Karla', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 10px; cursor: pointer;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
}
.tab.active {
  background: var(--bg-2); color: #ededed;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tab:hover:not(.active) { color: var(--silver); }

/* Google button */
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 16px;
  background: #ededed; color: #1a1a1a;
  border: 1px solid #ededed;
  font-family: 'Karla', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-google:hover { background: #fff; transform: translateY(-1px); }
.btn-google svg { display: block; flex-shrink: 0; }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--silver-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line-2);
}

/* Form fields */
.field { margin-bottom: 14px; }

.field-label {
  display: block;
  font-family: 'Architects Daughter', cursive;
  font-size: 13px; color: var(--silver-dim);
  letter-spacing: 0.02em; margin-bottom: 8px;
}
.field-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  color: var(--silver);
  font-family: 'Karla', sans-serif; font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--silver-faint); }
.field-input:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
}
.field-input.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}
.field-error {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #e57373;
  min-height: 0;
}
.field-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.field-link {
  font-size: 12px; color: var(--silver-dim);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.field-link:hover { color: var(--copper); border-bottom-color: var(--copper); }

/* Submit button */
.btn-submit {
  width: 100%; padding: 13px 16px;
  background: var(--copper); color: #fff;
  border: 1px solid var(--copper);
  font-family: 'Karla', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer;
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.15s ease;
  position: relative; overflow: hidden;
}
.btn-submit:hover:not(:disabled) {
  background: #b86a36;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(166, 94, 46, 0.5);
}
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-submit .arrow { transition: transform 0.2s; }
.btn-submit:hover:not(:disabled) .arrow { transform: translateX(3px); }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.success-state { text-align: center; padding: 20px 0; }
.success-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--copper);
  background: var(--copper-soft);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.success-title {
  font-size: 22px; color: #ededed; margin: 0 0 8px;
  font-weight: 600; letter-spacing: -0.01em;
  font-family: 'Karla', sans-serif;
}
.success-sub {
  color: var(--silver-dim); font-size: 14px;
  line-height: 1.5; margin: 0;
  font-family: 'Karla', sans-serif;
}
.success-mono { font-family: 'JetBrains Mono', monospace; color: var(--copper); }

/* Footnote */
.auth-footnote {
  margin-top: 24px; text-align: center;
  font-size: 12px; color: var(--silver-faint); line-height: 1.5;
}
.auth-footnote a {
  color: var(--silver-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.auth-footnote a:hover { color: var(--copper); text-decoration-color: var(--copper); }

/* Auth foot */
.auth-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--silver-faint); letter-spacing: 0.06em;
}
.auth-foot .links { display: flex; gap: 18px; }
.auth-foot a { color: var(--silver-faint); text-decoration: none; }
.auth-foot a:hover { color: var(--silver-dim); }

/* ── Reveal animations ─────────────────────────────────────────────────── */
.reveal { animation: rev 0.6s ease both; }
@keyframes rev {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.25s; }
.reveal.d4 { animation-delay: 0.35s; }

/* ── Responsive ────────────────────────────────────────────────────────── */

/* Tablet & below: stack panes */
@media (max-width: 880px) {
  .pane-brand, .pane-auth { padding: 36px 36px; }
  .pane-brand { border-right: none; border-bottom: 1px solid var(--line); }
  .brand-mid  { max-width: none; }
  h1.headline { font-size: clamp(38px, 7vw, 54px); }
  .sub        { font-size: 16px; max-width: none; }
  .auth-card  { max-width: 460px; }
  .brand-top  { gap: 16px; flex-wrap: wrap; }
}

/* Phone landscape & below */
@media (max-width: 600px) {
  .pane-brand, .pane-auth { padding: 28px 22px; }
  .brand-top { flex-direction: row; align-items: center; gap: 12px; }
  .status-pill { font-size: 10px; padding: 5px 10px; letter-spacing: 0.06em; }
  .eyebrow { font-size: 13px; margin-bottom: 20px; }
  h1.headline { font-size: 34px; line-height: 1.06; margin-bottom: 20px; }
  .sub { font-size: 15px; margin-bottom: 28px; line-height: 1.5; }

  /* Features: stack vertically */
  .features { flex-direction: column; margin-top: 4px; }
  .feature {
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    width: 100%;
  }
  .feature:last-child { border-bottom: none; padding-bottom: 4px; }
  .feature:not(:first-child) { padding-left: 0; }
  .feature:first-child { padding-top: 18px; }

  /* Ticker: allow horizontal scroll on small screens */
  .ticker { margin-top: 24px; }
  .ticker-head { padding: 9px 12px; font-size: 9.5px; }
  .ticker-head .lights span { width: 7px; height: 7px; }
  .ticker-body {
    padding: 10px 12px;
    font-size: 11px;
    height: 90px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ticker-body::-webkit-scrollbar { display: none; }

  /* Auth side */
  .auth-top { justify-content: space-between; }
  .auth-heading { font-size: 26px; }
  .auth-sub { font-size: 14px; margin-bottom: 24px; }
  .auth-card { padding-top: 8px; padding-bottom: 8px; }
  .tabs { margin-bottom: 20px; }
  .tab { font-size: 13px; padding: 9px; }
  .btn-google, .btn-submit { font-size: 14px; padding: 12px 14px; }
  .field-input { font-size: 14px; padding: 11px 12px; }
  .field-label { font-size: 12px; }
  .divider { margin: 16px 0; font-size: 10px; }
  .auth-footnote { font-size: 11.5px; margin-top: 20px; }

  .brand-foot { font-size: 10px; }
  .auth-foot { font-size: 10px; flex-wrap: wrap; gap: 8px; }
  .auth-foot .links { gap: 14px; }
}

/* Tiny phones (< 380px) */
@media (max-width: 380px) {
  .pane-brand, .pane-auth { padding: 24px 18px; }
  h1.headline { font-size: 30px; }
  .status-pill { display: none; }
  .auth-top { justify-content: flex-end; }
  .auth-top-hint { display: none; }
}
