/*
 * Crypwealthy Landing Page Styles
 *
 * This stylesheet defines the dark, premium look for the
 * Crypwealthy landing page. Colours and spacing are inspired
 * by modern financial publications—black backgrounds, gold
 * accents and generous white space for a calm, rational tone.
 */

:root {
  /* Updated dark-gold palette for a more premium look */
  --bg: #050505;
  --bg-soft: #0b0a08;
  --card: rgba(255, 255, 255, 0.04);
  --text: #f7f0e6;
  --muted: #b8ad9f;
  --gold: #d6a637;
  --gold-soft: #f2c766;
  --border: rgba(214, 166, 55, 0.32);

  /* Map legacy accent variables to gold to avoid broken references */
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
}

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

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.3rem;
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-soft);
}

.nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-links.open {
  position: absolute;
  top: 64px;
  right: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-soft);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 5rem 0;
  background:
    radial-gradient(circle at top right, rgba(201, 164, 92, 0.14), transparent 34%),
    linear-gradient(180deg, #11100d 0%, #0d0d0b 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.hero-price {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero visual container (formerly hero-image) */
.hero-visual {
  align-self: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  /* height will adjust based on image */
}

/* Provided hero mockup styling */
/* Hero and pricing visuals: container with radial glow */
.hero-visual,
.pricing-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Subtle radial gold glow behind the product */
.hero-visual::before,
.pricing-image::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(214, 166, 55, 0.22) 0%,
    rgba(214, 166, 55, 0.09) 38%,
    transparent 70%
  );
  filter: blur(28px);
  z-index: -1;
}

/* Mockup frame styling for hero and pricing */
.hero-mockup {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 28px;
  overflow: visible;
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(214, 166, 55, 0.16);
  transform: none;
}

/* Device group */
.device-group {
  position: relative;
  width: 100%;
  height: 100%;
}

.device {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
}

/* Laptop: wide and low */
.device-laptop {
  width: 60%;
  height: 50%;
  top: 10%;
  left: 0;
  transform: rotateY(-12deg) rotateX(4deg);
  z-index: 1;
}

/* Tablet: medium size */
.device-tablet {
  width: 40%;
  height: 65%;
  top: 5%;
  left: 45%;
  transform: rotateY(-10deg) rotateX(3deg);
  border-radius: 12px;
  z-index: 2;
}

/* Phone: narrow and tall */
.device-phone {
  width: 25%;
  height: 70%;
  top: 20%;
  left: 75%;
  transform: rotateY(-8deg) rotateX(2deg);
  border-radius: 18px;
  z-index: 3;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #11100d;
  box-shadow: 0 4px 12px rgba(201, 164, 92, 0.25);
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.big-btn {
  min-width: 200px;
  font-size: 1rem;
  padding: 1rem 1.6rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Audience grid */
.audience-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.audience-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
}

/* Preview grid */
.preview-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

/* Individual preview card */
.preview-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(214, 166, 55, 0.22);
  border-radius: 22px;
  padding: 0.8rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 166, 55, 0.48);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(214, 166, 55, 0.12);
}

.section-sub {
  max-width: 680px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Pricing section */
.pricing-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.pricing-content {
  flex: 1;
  max-width: 540px;
}

.pricing-image {
  flex: 1;
  max-width: 320px;
  perspective: 800px;
}

/* Pricing mockup image inherits similar styling but slightly smaller max-width */
.pricing-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(214, 166, 55, 0.16);
  transform: none;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  margin: 0 0.5rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-visual {
    max-width: 500px;
    height: 320px;
  }
  .device-laptop {
    width: 55%;
    height: 48%;
    top: 10%;
    left: 0;
  }
  .device-tablet {
    width: 38%;
    height: 60%;
    top: 5%;
    left: 50%;
  }
  .device-phone {
    width: 20%;
    height: 65%;
    top: 20%;
    left: 80%;
  }
  .pricing-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .pricing-image img {
    transform: none;
  }
}

/* Responsive columns for preview grid */
@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ensure full opacity and disable filters on all mockup and preview images */
.hero-mockup,
.pricing-image img,
.preview-card img {
  opacity: 1 !important;
  filter: none !important;
}
