/* CoinRoom static landing — minimal, light cream */

:root {
  --bg: #FCF9F6;
  --bg-deep: #F6F3F0;
  --paper: #FFFFFF;
  --ink: #1C1C1A;
  --muted: #565E57;
  --line: #C2C9BC;
  --primary: #406839;
  --primary-soft: #D3E8D1;
  --primary-dark: #2E4D28;
  --tertiary: #705A49;
  --gold: #C9A24B;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 20px rgba(64, 104, 57, 0.06);
  --shadow-card: 0 10px 30px rgba(74, 55, 40, 0.08);
  --shadow-deep: 0 24px 60px rgba(28, 28, 26, 0.12);

  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.icon {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.container {
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px;
}

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 249, 246, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 201, 188, 0.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; }
.nav-textlogo { height: 28px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px;
}
.lang-toggle {
  padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); background: transparent; border: 0; border-radius: 100px;
  transition: all 0.2s;
}
.lang-toggle[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 90px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 50% 0%, rgba(64, 104, 57, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 85% 30%, rgba(201, 162, 75, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.hero-glow {
  position: absolute; inset: -25%; pointer-events: none;
  background:
    radial-gradient(38% 36% at 30% 25%, rgba(64, 104, 57, 0.16) 0%, transparent 60%),
    radial-gradient(34% 32% at 75% 60%, rgba(201, 162, 75, 0.12) 0%, transparent 60%);
  filter: blur(70px); opacity: 0.5;
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); opacity: 0.4; }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 0.55; }
  100% { transform: translate3d(1%, -2%, 0) scale(1.03); opacity: 0.45; }
}

.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 720px;
  margin-bottom: 56px;
}

.hero-logo {
  height: 64px; width: auto; margin: 0 auto 28px;
  filter: drop-shadow(0 8px 24px rgba(64, 104, 57, 0.15));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px; color: var(--muted);
  max-width: 560px; margin: 0 auto 36px;
}

.hero-download {
  display: inline-flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: center;
}

.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 0; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.btn-download::before {
  content: ""; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(64, 104, 57, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.coming-soon {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary);
  padding: 7px 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(64, 104, 57, 0.2);
  border-radius: 100px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============== DEMO SLIDE ============== */
.demo {
  position: relative; z-index: 2;
}

.demo-window {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(194, 201, 188, 0.5), 0 0 60px rgba(64, 104, 57, 0.1);
}

.demo-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #EBE7E2, var(--bg-deep));
  border-bottom: 1px solid var(--line);
}
.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.demo-bar-title {
  margin-left: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted);
}

.demo-track {
  display: flex;
  overflow: hidden;
}
.demo-slide {
  flex: 0 0 100%; width: 100%; height: auto; display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
}
.demo-slide.active { opacity: 1; }

.demo-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 20px;
}
.demo-nav {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  color: var(--primary); transition: all 0.2s;
}
.demo-nav:hover { border-color: var(--primary); background: var(--primary-soft); }

.demo-dots { display: flex; gap: 8px; }
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 0; padding: 0;
  transition: all 0.2s; cursor: pointer;
}
.demo-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ============== FEATURES ============== */
.features {
  padding: 90px 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin: 0 auto 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; border-radius: var(--radius-sm);
  color: var(--primary); background: var(--primary-soft);
  border: 1px solid rgba(64, 104, 57, 0.15);
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: rgba(252, 249, 246, 0.7);
  padding: 56px 0 32px; text-align: center;
}
.footer-logo { height: 36px; width: auto; margin: 0 auto 14px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 15px; font-style: italic; margin-bottom: 20px; color: rgba(252, 249, 246, 0.55); }
.footer-copy {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(252, 249, 246, 0.4);
  padding-top: 20px; border-top: 1px solid rgba(252, 249, 246, 0.12);
}

/* ============== REVEAL ============== */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-logo { height: 48px; }
  .hero { padding: 56px 0 48px; }
}
@media (max-width: 420px) {
  .hero-download { flex-direction: column; width: 100%; }
  .btn-download { width: 100%; justify-content: center; }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
