/* Guddle Brand CSS — shared across all pages */

:root {
  --bg-deep: #0F0828;
  --bg-card: #1A0E3D;
  --bg-elevated: #251752;
  --accent-purple: #8B5CF6;
  --accent-blue: #3DABF5;
  --accent-yellow: #FFE75A;
  --accent-orange: #FFA840;
  --text-primary: #F4F1FF;
  --text-secondary: #B8B0D0;
  --text-muted: #7A7396;
  --border: rgba(139, 92, 246, 0.2);
  --gradient-hero: radial-gradient(ellipse at top, #2A1656 0%, #0F0828 60%);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

a:hover {
  opacity: 0.85;
}

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

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 8, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.brand img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.lang-switch {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ============ Hero ============ */
.hero {
  background: var(--gradient-hero);
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(var(--shadow-glow));
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 0%, #B8B0D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #3DABF5);
  color: #FFFFFF;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.55);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

/* ============ Features ============ */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============ Showcase (alternating) ============ */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}

.showcase.reverse {
  grid-template-columns: 1fr 1fr;
}

.showcase.reverse .showcase-text {
  order: 2;
}

.showcase-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.showcase-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .showcase,
  .showcase.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase.reverse .showcase-text {
    order: unset;
  }
}

/* ============ Roadmap section (visually distinct from v0.1 features) ============ */
.roadmap {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.06) 50%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.roadmap .section-title {
  background: linear-gradient(135deg, #B89AFF 0%, #3DABF5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roadmap-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  background: rgba(61, 171, 245, 0.12);
  border: 1px solid rgba(61, 171, 245, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.roadmap .showcase-image img {
  opacity: 0.92;
  transition: opacity 0.3s;
}

.roadmap .showcase-image img:hover {
  opacity: 1;
}

/* ============ Download CTA box ============ */
.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.qr-block {
  text-align: center;
}

.qr-block img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: white;
  padding: 8px;
}

.qr-block p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-info h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.download-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .qr-block img {
    margin: 0 auto;
  }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.footer-brand img {
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-meta {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Privacy/Doc page typography ============ */
.doc-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.doc-content h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc-content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.doc-content h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.doc-content p,
.doc-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.doc-content ul {
  padding-left: 24px;
}

.doc-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--accent-blue);
}

/* ============ Responsive helpers ============ */
@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a:not(.lang-switch) {
    display: none;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero-logo {
    width: 140px;
  }
  .section {
    padding: 56px 0;
  }
}