/* ===== TOKENS ===== */
:root {
  --font-body:    "Raleway", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --text-2xs: 0.74rem;
  --text-xs:  0.82rem;
  --text-sm:  0.9rem;
  --text-md:  0.96rem;
  --text-lg:  1.08rem;
  --text-xl:  1.28rem;
  --text-2xl: clamp(1.85rem, 3vw, 2.5rem);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 24px rgba(45, 27, 105, 0.08);
  --shadow-md: 0 12px 40px rgba(45, 27, 105, 0.12);

  /* ---- Light mode (padrão) ---- */
  --bg:            #F5F1EE;
  --bg-alt:        #EDE7F5;
  --surface-panel: rgba(255, 255, 255, 0.88);
  --surface-card:  rgba(255, 255, 255, 0.95);
  --surface-shell: rgba(255, 255, 255, 0.95);
  --surface-soft:  rgba(237, 231, 245, 0.8);
  --border:        rgba(45, 27, 105, 0.1);
  --border-strong: rgba(45, 27, 105, 0.22);

  --text:         #1A1130;
  --muted:        #7A6E8A;
  --muted-strong: #4A3D5E;

  /* Brand */
  --accent:        #C9A83E;   /* dourado — contraste OK em fundo claro */
  --accent-bright: #E8C45A;   /* dourado pleno — para shapes, botões, glow */
  --purple:        #2D1B69;
  --purple-mid:    #3D2A80;

  /* Semânticas */
  --success: #1B7A45;
  --warning: #8C6000;
  --danger:  #B83232;
  --info:    #1A5F9E;

  --app-gradient:
    radial-gradient(circle at 12% 8%,  rgba(232, 196, 90,  0.14), transparent 22%),
    radial-gradient(circle at 88% 6%,  rgba(45,  27,  105, 0.07), transparent 26%),
    linear-gradient(180deg, #F5F1EE 0%, #EDE7F5 52%, #F0EBF8 100%);
}

/* ---- Dark mode (opção) ---- */
[data-theme="dark"] {
  --bg:            #0F0A1E;
  --bg-alt:        #1A1130;
  --surface-panel: rgba(20, 13, 39, 0.84);
  --surface-card:  rgba(29, 20, 55, 0.92);
  --surface-shell: rgba(29, 20, 55, 0.94);
  --surface-soft:  rgba(37, 27, 70, 0.82);
  --border:        rgba(232, 196, 90, 0.14);
  --border-strong: rgba(232, 196, 90, 0.28);

  --text:         #EDE9FF;
  --muted:        #8B7FA8;
  --muted-strong: #BFB3D8;

  --accent:        #E8C45A;
  --accent-bright: #F0D070;

  --success: #72E0A6;
  --warning: #FFC96B;
  --danger:  #FF8A8A;
  --info:    #7DC4FF;

  --app-gradient:
    radial-gradient(circle at 12% 8%,  rgba(232, 196, 90,  0.16), transparent 22%),
    radial-gradient(circle at 88% 6%,  rgba(61,  42,  128, 0.22), transparent 26%),
    linear-gradient(180deg, #0F0A1E 0%, #1A1130 52%, #0D0918 100%);
}

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

/* ===== BASE ===== */
html {
  background: var(--bg);
}

body {
  background: var(--app-gradient);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-panel);
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-name span {
  color: var(--accent-bright);
}

.slogan {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ===== TEHILLAH MARK — harpa em SVG ===== */
.tehillah-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: rgba(45, 27, 105, 0.06);
  box-shadow: inset 0 0 0 1px rgba(45, 27, 105, 0.08);
  color: var(--purple);
  transition: transform 220ms ease, background 220ms ease;
}

[data-theme="dark"] .tehillah-mark {
  background: rgba(237, 233, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(237, 233, 255, 0.07);
  color: var(--text);
}

.tehillah-mark:hover {
  transform: scale(1.06);
  background: rgba(45, 27, 105, 0.1);
}

[data-theme="dark"] .tehillah-mark:hover {
  background: rgba(237, 233, 255, 0.09);
}

.tehillah-mark__svg {
  display: block;
  width: 1.8rem;
  height: 2.2rem;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.25rem 10rem;
  background:
    radial-gradient(circle at 50% 60%, rgba(45, 27, 105, 0.08), transparent 55%),
    var(--app-gradient);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 50% 60%, rgba(61, 42, 128, 0.25), transparent 55%),
    var(--app-gradient);
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--text);
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 14ch;
  position: relative;
}

.hero h2 span {
  color: var(--accent-bright);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--muted-strong);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
  position: relative;
}

/* ===== BOTÃO ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.4rem;
  background: var(--accent-bright);
  color: var(--purple);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(201, 168, 62, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.btn:hover {
  background: #F0D070;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201, 168, 62, 0.38);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: var(--text-xs);
  border-top: 1px solid var(--border);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--muted-strong);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-soft);
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  header {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    padding: 6rem 1rem 7rem;
  }

  .hero h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
