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

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

:root {
  --bg:       #0F0D0A;
  --surface:  #1A1510;
  --surface2: #251C14;
  --border:   #2A1E14;
  --text:     #F4F0EC;
  --text2:    #9A8070;
  --text3:    #6b5c4d;
  --orange:      #E87830;
  --orange-dim:  rgba(232,120,48,0.12);
  --orange-light:#F09850;
  --green:    #5BA07A;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,13,10,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 20px; color: var(--orange-light);
  letter-spacing: 0.5px; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo:hover { text-decoration: none; }
.nav-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--orange); color: #0F0D0A !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 700 !important; font-size: 14px !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Hero ── */
.hero {
  padding: 100px 24px 80px;
  max-width: 1100px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px; z-index: 0;
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(232,120,48,0.10) 0%, transparent 65%);
}
.hero-inner {
  display: flex; align-items: center; gap: 64px;
  position: relative; z-index: 1;
}
.hero-text { flex: 1; min-width: 0; }
.hero-icon {
  width: 72px; height: 72px; border-radius: 18px;
  margin-bottom: 28px; flex-shrink: 0;
  box-shadow: 0 4px 28px rgba(232,120,48,0.28);
}
.hero-badge {
  display: inline-block; background: var(--orange-dim); border: 1px solid rgba(232,120,48,0.3);
  color: var(--orange-light); font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--text);
}
.hero h1 span { color: var(--orange-light); }
.hero p { font-size: 18px; color: var(--text2); max-width: 500px; margin: 0 0 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { flex-shrink: 0; }
.phone-frame {
  width: 220px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px var(--border), 0 32px 64px rgba(0,0,0,0.5);
}
.phone-screen { width: 100%; height: auto; }
.btn-primary {
  background: var(--orange); color: #0F0D0A; font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 10px; transition: opacity .2s; display: inline-block;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; }
.btn-secondary {
  background: transparent; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 10px; border: 1px solid var(--border);
  transition: border-color .2s, color .2s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange-light); text-decoration: none; }

/* ── Section ── */
section { padding: 80px 24px; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange-light); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px;
}
.section-sub { text-align: center; color: var(--text2); font-size: 16px; max-width: 540px; margin: 0 auto 56px; }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; transition: border-color .2s; position: relative;
}
.feature-card:hover { border-color: rgba(232,120,48,0.4); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── Open source banner ── */
.oss-banner {
  max-width: 1100px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px; text-align: center;
}
.oss-banner h2 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 12px; }
.oss-banner p { color: var(--text2); max-width: 560px; margin: 0 auto 24px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; max-width: 1100px; margin: 0 auto;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 18px; color: var(--orange-light);
  display: flex; align-items: center; gap: 8px;
}
.footer-icon { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color .2s; }
.footer-links a:hover { color: var(--text2); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── Legal pages ── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.legal-wrap h1 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.legal-date { font-size: 13px; color: var(--text3); margin-bottom: 48px; }
.legal-wrap h2 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; color: var(--orange-light); }
.legal-wrap p, .legal-wrap li { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--orange-light); }

@media (max-width: 768px) {
  .hero { padding: 64px 24px 60px; }
  .hero-inner { flex-direction: column; gap: 48px; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero p { margin: 0 auto 40px; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; }
  .footer-logo { justify-content: center; }
}
