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

:root {
  --navy: #080e1a;
  --deep: #0c1524;
  --sand: #e8c99a;
  --claw: #ff6b47;
  --warm: #f4a261;
  --gold: #ffd166;
  --teal: #06d6a0;
  --muted: #6b7d8f;
  --dim: #2d3748;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--sand);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  overflow-x: hidden;
}


/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-bottom: 1px solid rgba(232,201,154,0.08);
  background: rgba(8,14,26,0.85);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.375rem;
  color: var(--sand);
}

.cw {
  color: var(--claw);
  text-shadow: 0 0 20px rgba(255,107,71,0.5);
}

nav {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--sand); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--sand);
  max-width: 780px;
  text-shadow: 0 0 60px rgba(232,201,154,0.15);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title .highlight {
  color: var(--claw);
  text-shadow: 0 0 40px rgba(255,107,71,0.4);
}

.hero-sub {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* ── BROWSER WINDOW ── */
.browser-window {
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.45),
    0 14px 32px rgba(0,0,0,0.55),
    0 40px 90px rgba(0,0,0,0.65);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

/* Rim overlay */
.browser-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  pointer-events: none;
  z-index: 100;
}

/* ── Tab Bar ── */
.tab-bar {
  background: #161616;
  padding: 10px 14px 0 14px;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-right: 14px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.tab {
  background: #242424;
  border-radius: 8px 8px 0 0;
  padding: 7px 12px 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  max-width: 300px;
}

.tab-corner {
  width: 10px;
  height: 32px;
  align-self: flex-end;
  flex-shrink: 0;
  background: #242424;
  position: relative;
}

.tab-corner-overlay {
  position: absolute;
  inset: 0;
  background: #161616;
}
.tab-corner-left  .tab-corner-overlay { border-bottom-right-radius: 8px; }
.tab-corner-right .tab-corner-overlay { border-bottom-left-radius:  8px; }

.tab-close {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.tab-close:hover { background: rgba(255,255,255,0.15); color: #eee; }
.tab-close svg { width: 10px; height: 10px; }

.tab-favicon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8d5a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding-top: 3px;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.tab-title {
  font-size: 16px;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Nav Bar ── */
.nav-bar {
  background: #242424;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.4);
}

.nav-corner {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  background: #161616;
  pointer-events: none;
}
.nav-corner-left  { left: 0; }
.nav-corner-right { right: 0; }

.nav-corner-overlay {
  position: absolute;
  inset: 0;
  background: #242424;
}
.nav-corner-left  .nav-corner-overlay { border-top-left-radius:  8px; }
.nav-corner-right .nav-corner-overlay { border-top-right-radius: 8px; }

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-btn:hover { background: rgba(255,255,255,0.08); }
.nav-btn svg { width: 18px; height: 18px; }

.url-bar {
  flex: 1;
  background: #161616;
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
}

.url-lock svg {
  width: 13px;
  height: 13px;
  color: #aaa;
  flex-shrink: 0;
}

.url-text {
  font-size: 16px;
  color: #e0e0e0;
  flex: 1;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-scheme { color: #777; }

.star-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.star-btn:hover { background: rgba(255,255,255,0.1); }
.star-btn svg { width: 15px; height: 15px; }

.browser-viewport {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}


.browser-sand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  pointer-events: none;
  z-index: 5;
}

#page-crab {
  position: absolute;
  font-size: 4rem;
  pointer-events: none;
  z-index: 50;
  user-select: none;
  line-height: 1;
}

/* ── STORY ITEMS ── */
.story-item {
  position: absolute;
  font-size: 4rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 8;
  display: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

#story-doc-0, #story-doc-1, #story-doc-2 { font-size: 3rem; }

#crab-bubble {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  user-select: none;
  z-index: 55;
  display: none;
  transform: translate(-50%, -100%);
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-label {
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--sand);
  margin-bottom: 4rem;
  line-height: 1;
}

/* ── FEATURES ── */
#features { background: var(--deep); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid rgba(232,201,154,0.1);
}

.feature-card {
  padding: 3rem 2.5rem;
  border: 1px solid rgba(232,201,154,0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--claw), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { background: rgba(232,201,154,0.03); }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  color: var(--warm);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.feature-badge {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--warm);
  color: var(--warm);
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.feature-text strong {
  color: var(--sand);
  font-weight: 400;
}

/* ── SAFE box ── */
.safe-box {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(6,214,160,0.05);
  border-left: 2px solid var(--teal);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sand);
  font-family: 'Roboto', sans-serif;
}

/* ── ROADMAP ── */
#roadmap {
  background: var(--navy);
}

.roadmap-list {
  list-style: none;
  max-width: 700px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(232,201,154,0.07);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.roadmap-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.roadmap-step {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  color: rgba(255,107,71,0.2);
  line-height: 1;
  text-align: right;
}

.roadmap-content h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  color: var(--warm);
  margin-bottom: 0.5rem;
}

.roadmap-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.roadmap-tag {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  background: rgba(244,162,97,0.1);
  color: var(--warm);
  margin-bottom: 0.6rem;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem;
  border-top: 1px solid rgba(232,201,154,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--muted);
}

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

.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.375rem;
  opacity: 0.5;
}


/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header { padding: 1rem 1.5rem; }
  nav { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .browser-viewport { height: 200px; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
