/* ═══════════════════════════════════════
   AUTHVAULT.APP — Secure Authenticator
   Dark vault aesthetic, amber accent
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Figtree:wght@400;500;600&display=swap');

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ═══ TOKENS ═══ */
:root {
  --bg:         #06080d;
  --bg-surface: #0e1118;
  --bg-card:    #141820;
  --bg-input:   #0e1118;
  --border:     rgba(255, 255, 255, 0.06);
  --border-active: rgba(255, 165, 0, 0.25);

  --text:       #e8ecf4;
  --text-2:     #9ba3b5;
  --text-3:     #555d6f;

  --amber:      #ffa500;
  --amber-dim:  #d4870a;
  --amber-glow: rgba(255, 165, 0, 0.12);
  --green:      #34d399;
  --green-glow: rgba(52, 211, 153, 0.12);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 18px;
}

/* ═══ BASE ═══ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ═══ LAYOUT ═══ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ NAV ═══ */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav__brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ═══ HERO ═══ */
.hero {
  text-align: center;
  padding: 48px 0 56px;
}
.hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 24px;
  box-shadow: 0 0 80px var(--amber-glow), 0 0 0 1px var(--border);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero__title span { color: var(--amber); }
.hero__desc {
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.hero__cta:hover {
  background: var(--amber-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--amber-glow);
  text-decoration: none;
}
.hero__cta svg { flex-shrink: 0; }
.hero__sub {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}

/* ═══ FEATURES ═══ */
.features {
  padding: 0 0 48px;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 18px;
  text-align: center;
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 40px var(--amber-glow);
}
.feature-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card__icon svg { color: var(--amber); }
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ═══ TRUST / ZERO SECTION ═══ */
.trust {
  padding: 0 0 48px;
}
.trust__box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.trust__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.trust__desc {
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 28px;
}
.trust__items {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}
.trust__item svg { flex-shrink: 0; }

/* ═══ FOOTER ═══ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-3);
}
.footer__links a:hover { color: var(--text); }
.footer__copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ═══ CONTENT PAGES (Privacy, etc.) ═══ */
.content {
  padding: 0 0 80px;
}
.content h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.content .subtitle {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.content h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 10px;
}
.content p {
  margin-bottom: 14px;
}
.content ul {
  margin: 8px 0 16px 20px;
}
.content li {
  margin-bottom: 6px;
}
.content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--amber);
}

/* ═══ FEEDBACK FORM ═══ */
.feedback {
  padding: 0 0 80px;
}
.feedback h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feedback > p {
  font-size: 15px;
  margin-bottom: 32px;
}
.feedback__form,
.support__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.support__form {
  margin-top: 16px;
  padding-top: 0;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.form-group--reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reason-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 14px;
  color: var(--text-2);
}
.reason-option:hover {
  border-color: var(--border-active);
}
.reason-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  flex-shrink: 0;
}
.feedback textarea,
.support__form textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback textarea::placeholder,
.support__form textarea::placeholder { color: var(--text-3); }
.feedback textarea:focus,
.support__form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.feedback input[type="email"],
.support__form input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback input[type="email"]::placeholder,
.support__form input[type="email"]::placeholder { color: var(--text-3); }
.feedback input[type="email"]:focus,
.support__form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.feedback__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}
.feedback__submit:hover {
  background: var(--amber-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--amber-glow);
}

/* Thank you state */
.feedback__thanks {
  text-align: center;
  padding: 60px 0;
}
.feedback__thanks h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feedback__thanks p {
  font-size: 14px;
  color: var(--text-2);
}
.hidden { display: none; }

/* ═══ GRAIN TEXTURE ═══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .trust__items { flex-direction: column; align-items: center; gap: 16px; }
  .trust__box { padding: 28px 20px; }
  .nav { margin-bottom: 40px; }
  .hero { padding: 24px 0 56px; }
  .hero__icon { width: 72px; height: 72px; border-radius: 18px; }
  .nav__links { gap: 16px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
