/* ── Hedortal website – shared styles ── */

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

:root {
  --bg:       #1a1728;
  --bg2:      #231f35;
  --bg3:      #2c2843;
  --yellow:   #f5c518;
  --orange:   #e8813a;
  --text:     #ede9ff;
  --muted:    #9b95b8;
  --faint:    #6e6888;
  --border:   rgba(255,255,255,0.10);
  --radius:   20px;
  --shadow:   0 4px 24px rgba(0,0,0,0.28);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.68;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(26,23,40,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.nav-logo span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 72px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -10%,
    rgba(245,197,24,0.11) 0%, transparent 68%);
  pointer-events: none;
}
.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 0 48px rgba(245,197,24,0.22), var(--shadow);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
}
.app-store-btn {
  display: inline-block;
  transition: opacity .18s, transform .18s;
}
.app-store-btn:hover  { opacity: 0.82; transform: scale(1.04); }
.app-store-btn:active { opacity: 0.7;  transform: scale(0.98); }
.app-store-btn img    { height: 52px; }

/* ── FEATURES ── */
.features {
  padding: 60px 20px 72px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(245,197,24,0.25); }
.feature-card .icon { font-size: 1.9rem; margin-bottom: 12px; line-height: 1; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  background: var(--bg2);
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--faint);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--faint); text-decoration: none; transition: color .18s; }
footer a:hover { color: var(--muted); }

/* ── LEGAL PAGES ── */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 20px 96px;
}
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.2;
}
.page-header p { color: var(--muted); font-size: 0.875rem; }

.page-wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 32px 0 10px;
}
.page-wrap p {
  color: rgba(237,233,255,0.82);
  margin-bottom: 12px;
  font-size: 0.93rem;
}
.page-wrap ul {
  margin: 0 0 12px 18px;
  color: rgba(237,233,255,0.82);
  font-size: 0.93rem;
}
.page-wrap ul li { margin-bottom: 5px; }
.page-wrap a { color: var(--yellow); }
.page-wrap a:hover { color: var(--orange); }

.callout {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 28px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── MOBILE ── */
@media (max-width: 580px) {
  .hero { padding: 52px 16px 48px; }
  .hero-icon { width: 88px; height: 88px; border-radius: 20px; }
  .app-store-btn img { height: 46px; }

  .features { padding: 40px 16px 56px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .page-wrap { padding: 36px 16px 72px; }
}

@media (min-width: 581px) and (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
