/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* One Piece card game palette */
  --bg:            #0a0b18;
  --bg-secondary:  #0f1022;
  --bg-card:       #13152a;
  --bg-card-hover: #181b32;
  --text:          #f0f0f0;
  --text-muted:    #8a90b0;
  --text-dim:      #555a80;
  --red:           #e4001b;
  --red-dark:      #b50015;
  --red-glow:      rgba(228, 0, 27, 0.25);
  --gold:          #e8b800;
  --gold-dark:     #b08c00;
  --gold-glow:     rgba(232, 184, 0, 0.2);
  --border:        #1e2140;
  --border-bright: #2a2f55;
  --navy:          #10122a;
  --radius:        16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.header-logo img {
  width: 42px;
  height: 42px;
}

.header-logo span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav { display: flex; gap: 1.4rem; align-items: center; }
.header-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 5rem;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.6;
}
.hero-bg-orb--red {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(228, 0, 27, 0.18) 0%, transparent 70%);
}
.hero-bg-orb--gold {
  bottom: 5%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 184, 0, 0.12) 0%, transparent 70%);
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 2rem;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(228, 0, 27, 0.4)) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1;
}

.accent {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 2rem;
}

/* Coming soon badge */
.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 184, 0, 0.12);
  border: 1px solid rgba(232, 184, 0, 0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.coming-soon-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ===== Download buttons (disabled style) ===== */
.download-section { text-align: left; }

.download-coming-soon {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  min-width: 200px;
  transition: all 0.3s;
}

.download-btn--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
  position: relative;
}

.download-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.download-btn .btn-text { text-align: left; }
.download-btn .btn-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.download-btn .btn-store {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Section shared ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ===== Features ===== */
.features {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(228,0,27,0.15), rgba(232,184,0,0.08));
  border: 1px solid rgba(228,0,27,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--red);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Hero carousel ===== */
.hero-carousel {
  flex: 0 0 380px;
  min-width: 0;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
  /* no border-radius here — the phone-mockup has its own rounded corners */
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 0.5rem;
}

.slide-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* Phone mockup */
.phone-mockup {
  width: 100%;
  max-width: 280px;
  border-radius: 40px;
  border: 2px solid var(--border-bright);
  box-shadow:
    0 0 0 5px rgba(30,33,64,0.5),
    0 30px 60px rgba(0,0,0,0.6),
    0 0 50px rgba(228,0,27,0.1);
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

/* Carousel arrows */
.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-bright);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot--active {
  background: var(--red);
  transform: scale(1.3);
}

/* ===== CTA ===== */
.cta {
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(circle, rgba(228,0,27,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  background: rgba(232,184,0,0.12);
  border: 1px solid rgba(232,184,0,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.cta .download-coming-soon {
  margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  opacity: 0.8;
}
.footer-brand span {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-dim); font-size: 0.78rem; }
.footer-disclaimer {
  color: #404470;
  font-size: 0.72rem;
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Legal Pages ===== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}
.legal h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.legal .last-updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.9rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.93rem; line-height: 1.7; }
.legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--text); }

/* ===== Responsive ===== */

/* Stack hero at 900px */
@media (max-width: 900px) {
  .hero { padding: 6rem 1.5rem 4rem; }

  .hero-inner {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tagline { margin: 0 auto 2rem; }
  .download-section { text-align: center; }
  .download-buttons { justify-content: center; }

  .hero-carousel {
    flex: none;
    width: 100%;
    max-width: 340px;
  }

  .phone-mockup { max-width: 220px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-tagline { font-size: 1.05rem; }
  .hero-logo { width: 120px; height: 120px; }
  .features h2 { font-size: 1.8rem; }
  /* Nav: hide Privacy & Terms on small tablets, rely on footer links */
  .header-nav a:nth-child(3),
  .header-nav a:nth-child(4) { display: none; }
  .header-nav { gap: 1rem; }
}

/* No carousel arrows on small phones — swipe only */
@media (max-width: 600px) {
  .carousel-arrow { display: none; }
  .phone-mockup { border-radius: 30px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  /* Hide "OP Vault" text in header, keep logo icon to save space */
  .header-logo span { display: none; }
  .download-buttons { flex-direction: column; align-items: stretch; }
  .download-btn { width: 100%; max-width: 260px; }
}
