﻿:root {
  --primary: hsl(16, 41%, 49%);
  --primary-hover: #8B4E38;
  --bg-dark: #1A1A1A;
  --bg-light: #141414;
  --text-white: #ffffff;
  --text-dark: #f0f0f0;
  --text-gray: #b0b0b0;
  --text-light: #c0c0c0;
  --surface: #1A1A1A;
  --text: #f0f0f0;
  --text-muted: #aaaaaa;
  --card-bg: #222222;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: rgba(255, 255, 255, 0.85);
}

h1,
h2,
h3,
.font-serif {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 24px !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.domain-highlight {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  padding: 20px 0;
}

nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}

.lang-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.5;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lang-link.active {
  opacity: 1;
  color: white;
  background: rgba(176, 101, 74, 0.2);
}

.lang-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.domain-selector {
  position: relative;
}

.domain-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.domain-btn .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  font-weight: bold;
}

.domain-btn .title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--bg-dark);
  border: 1px solid #333;
  display: none;
}

.domain-dropdown.active {
  display: block;
}

.domain-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #333;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.domain-item:hover {
  background: #2A2A2A;
}

.domain-item .url {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  display: block;
}

.domain-item .desc {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  text-align: center;
  padding: 120px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  padding: 20px;
  max-width: 1000px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(176, 101, 74, 0.5);
  background: rgba(176, 101, 74, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  border-radius: 2px;
}

/* ── Hero Typography — Investor Grade ── */

/* The investment headline: largest, most dominant element */
.hero h1 {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  color: #ffffff;
}

.hero h1 span.highlight {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-style: italic;
  color: var(--primary);
}

/* Domain label: asset identity block below the headline */
.hero-domain-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  margin-top: 0;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Asset ticker — small, precise, institutional */
.hero-domain-url {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.98rem, 0.95vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  opacity: 0.9;
}

/* Brand display — clean, non-italic, authoritative */
.hero-domain-name {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

/* Subtitle — readable, refined */
.hero p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 48px;
  line-height: 1.85;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.015em;
}

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* Sections */
.py-24 {
  padding: 120px 0;
}

.py-32 {
  padding: 160px 0;
}

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 80px;
}

.section-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--primary);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.section-desc {
  font-size: 19px;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* Dark Section Contrast Fixes */
/* Sections with inline background: var(--bg-dark) = #1A1A1A → force white text */
[style*="background: var(--bg-dark)"],
[style*="background:var(--bg-dark)"] {
  color: rgba(255, 255, 255, 0.85);
}

[style*="background: var(--bg-dark)"] h1,
[style*="background: var(--bg-dark)"] h2,
[style*="background: var(--bg-dark)"] h3,
[style*="background: var(--bg-dark)"] h4,
[style*="background:var(--bg-dark)"] h1,
[style*="background:var(--bg-dark)"] h2,
[style*="background:var(--bg-dark)"] h3,
[style*="background:var(--bg-dark)"] h4 {
  color: #ffffff;
}

[style*="background: var(--bg-dark)"] p,
[style*="background: var(--bg-dark)"] li,
[style*="background:var(--bg-dark)"] p,
[style*="background:var(--bg-dark)"] li {
  color: rgba(255, 255, 255, 0.75);
}

[style*="background: var(--bg-dark)"] .section-subtitle,
[style*="background:var(--bg-dark)"] .section-subtitle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Dark cards — ensure white text */
[style*="background: var(--card-bg)"],
[style*="background:var(--card-bg)"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

[style*="background: var(--card-bg)"] h3,
[style*="background: var(--card-bg)"] p,
[style*="background: var(--card-bg)"] li,
[style*="background:var(--card-bg)"] h3,
[style*="background:var(--card-bg)"] p,
[style*="background:var(--card-bg)"] li {
  color: rgba(255, 255, 255, 0.85) !important;
}

[style*="background: var(--card-bg)"] h3,
[style*="background:var(--card-bg)"] h3 {
  color: #ffffff !important;
}

[style*="background: var(--card-bg)"] .section-subtitle,
[style*="background:var(--card-bg)"] .section-subtitle {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.bg-dark-custom {
  background: #050505 !important;
  color: white !important;
}

.bg-dark-custom .section-title,
.bg-dark-custom h2,
.bg-dark-custom h3 {
  color: white !important;
}

.bg-dark-custom .section-desc,
.bg-dark-custom p,
.bg-dark-custom li {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-dark-custom .stat-label {
  color: var(--primary) !important;
}

.bg-dark-custom .stat-subtext {
  color: rgba(255, 255, 255, 0.6) !important;
}

.bg-dark-custom .section-subtitle {
  color: #fff !important;
  border-color: #fff !important;
}

/* Stats Dashboard Layout */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  margin-bottom: 12px;
}

.stat-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Comparison Box */
.comparison-box {
  background: rgba(176, 101, 74, 0.05);
  border: 1px solid rgba(176, 101, 74, 0.2);
  padding: 32px;
  border-radius: 20px;
  margin-top: 32px;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(176, 101, 74, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.comparison-value {
  font-weight: 700;
  color: white;
}

.comparison-value.highlight {
  color: var(--primary);
}

/* Specific fix for Market Analysis Layout */
#market-analysis {
  text-align: center;
}

#market-analysis .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 48px;
  text-align: left;
  max-width: 1000px;
  margin: 60px auto 0;
}

#market-analysis h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(176, 101, 74, 0.2);
  padding-bottom: 12px;
}

#market-analysis p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: #2a2a2a;
  color: rgba(255,255,255,0.85);
  padding: 40px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Portfolio */
.portfolio-section {
  background: var(--bg-dark);
  color: white;
}

.portfolio-section .section-title {
  color: white;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

/* Portfolio */
.portfolio-section {
  background: var(--bg-dark);
  color: white;
}

.portfolio-section .section-title {
  color: white;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

/* Premium Domain Cards */
.premium-domain-card {
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.premium-domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.premium-domain-card:hover {
  transform: translateY(-12px);
  border-color: rgba(176, 101, 74, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.premium-domain-card:hover::before {
  opacity: 1;
}

.domain-url {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: white;
  margin-bottom: 8px;
  display: block;
}

.domain-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.5;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.grade-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid;
}

.grade-badge.platinum {
  background: rgba(226, 232, 240, 0.1);
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.3);
}

.grade-badge.gold {
  background: rgba(253, 230, 138, 0.1);
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.3);
}

.grade-badge.silver {
  background: rgba(161, 161, 170, 0.1);
  color: #a1a1aa;
  border-color: rgba(161, 161, 170, 0.3);
}

.card-actions .icon-btn {
  filter: grayscale(1);
  opacity: 0.5;
  font-size: 14px;
}

.card-body {
  margin-bottom: 24px;
  flex-grow: 1;
}

.domain-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: color 0.3s;
  word-break: break-all;
  line-height: 1.2;
}

.premium-domain-card:hover .domain-name {
  color: var(--primary);
}

.domain-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.domain-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.domain-cat .dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.offer-btn {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(176, 101, 74, 0.3);
  background: rgba(176, 101, 74, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.offer-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.valuation-note {
  font-size: 11px;
  color: #ffffff;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.valuation-note strong {
  color: var(--primary);
  font-style: normal;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s;
}

.premium-domain-card:hover .pillar {
  background: rgba(255, 255, 255, 0.05);
}

.pillar-icon {
  font-size: 14px;
  margin-bottom: 4px;
}

.pillar-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
}

/* Hover Tooltips for Pillars */
.pillar.tooltip {
  position: relative;
  cursor: help;
}

.pillar.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  margin-bottom: 12px;
  pointer-events: none;
}

.pillar.tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  margin-bottom: 0px;
  pointer-events: none;
}

.pillar.tooltip:hover::after,
.pillar.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  margin-bottom: 8px;
}

.pillar.tooltip:hover::before {
  margin-bottom: -4px;
}

/* Contact */
.contact-section {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-content {
  position: relative;
  z-index: 10;
  padding: 60px 0;
}

.contact-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
  color: white;
}

.contact-section p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* Footer */
footer {
  background: #000;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: #666;
  font-size: 12px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  color: white;
  padding: 24px 0;
  z-index: 1000;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-active {
  bottom: 0px;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cookie-text {
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cookie-content {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-text {
    padding-right: 0;
    margin-right: 0;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* FLASHCARDS */
.flashcard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.flashcard {
  perspective: 1000px;
  height: 350px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flashcard:hover .flashcard-inner,
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(176, 101, 74, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.flashcard-front {
  background: linear-gradient(145deg, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
}

.flashcard-back {
  background: linear-gradient(145deg, var(--primary) 0%, #8a4e39 100%);
  transform: rotateY(180deg);
}

.flashcard-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.flashcard-back .flashcard-icon {
  color: #fff;
}

.flashcard h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.flashcard p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content {
  background: #111;
  width: 90%;
  max-width: 500px;
  padding: 48px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(176, 101, 74, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: rgba(176, 101, 74, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 32px;
  border: 1px solid rgba(176, 101, 74, 0.2);
}

.modal-content h3 {
  font-size: 28px;
  color: white;
  margin-bottom: 16px;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 16px;
}

.modal-btn {
  width: 100%;
}

/* Mobile & Tablet Optimizations - Overhaul for Premium Feel */

:root {
  --nav-height: 80px;
}

/* Enhanced fixed nav visibility */
nav {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(176, 101, 74, 0.2);
  transition: all 0.3s ease;
}

main {
  padding-top: var(--nav-height);
}

/* Global scroll margin for all anchors */
[id] {
  scroll-margin-top: var(--nav-height) !important;
}

@media (max-width: 1200px) {
  .personas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 991px) {
  :root {
    --nav-height: 80px;
  }

  .hero {
    padding-top: 40px !important;
  }

  /* Force one row on larger tablets and small laptops */
  .nav-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
  }

  .nav-right {
    gap: 16px !important;
  }

  .domain-selector {
    max-width: 240px;
  }

  .domain-btn {
    padding: 8px 16px !important;
  }

  .domain-btn .title {
    font-size: 18px !important;
  }

  .personas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .nav-content {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px 20px !important;
    text-align: center !important;
  }

  .nav-right {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 0 !important;
    display: flex !important;
  }

  .nav-right .btn-primary {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    display: flex !important;
    padding: 14px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  .lang-switcher {
    border: none !important;
    padding: 0 !important;
    justify-content: center !important;
    width: 100% !important;
    display: flex !important;
    position: static !important;
    background: transparent !important;
    gap: 15px !important;
    order: 2 !important;
  }

  .domain-selector {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    position: static !important;
    margin: 0 !important;
  }

  .domain-btn {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }

  .domain-btn .title {
    justify-content: center !important;
  }

  /* Fix contrast FAQ tekst */
  #market-analysis p {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column !important;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100% !important;
  }
}

/* --- INTERACTIVE FLASHCARDS --- */
.flashcard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  perspective: 1200px;
  margin: 50px 0;
}

.flashcard {
  height: 320px;
  cursor: pointer;
  position: relative;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard:hover .flashcard-inner,
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.flashcard-front {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #ffffff;
}

.flashcard-back {
  background: linear-gradient(135deg, var(--primary) 0%, #8a4e39 100%);
  color: #ffffff;
  transform: rotateY(180deg);
}

.flashcard-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashcard-back .flashcard-icon {
  color: #ffffff;
}

.flashcard h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ffffff;
}

.flashcard p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
}

/* --- PREMIUM INVESTOR PERSONA DISCOVERY --- */
#investor-profiles {
  background: radial-gradient(circle at top right, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#investor-profiles::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(176, 101, 74, 0.05) 0%, transparent 70%);
  z-index: 1;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  z-index: 2;
  position: relative;
  flex-wrap: wrap;
}

.profile-badge {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
}

.profile-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(176, 101, 74, 0.4);
  transform: translateY(-2px);
}

.profile-badge.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(176, 101, 74, 0.3);
}

.investor-profiles-container {
  min-height: 480px;
  position: relative;
  z-index: 2;
}

.investor-profile-content {
  display: none;
  animation: fadeInPersona 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.investor-profile-content.active {
  display: block;
}

/* Updated Persona Cards for High Contrast */
.profile-card {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(25px);
  border-radius: 32px !important;
  padding: 50px !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  color: #ffffff !important;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.profile-card h3 {
  font-size: 28px !important;
  color: #ffffff !important;
  margin-bottom: 20px !important;
}

.profile-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  margin-bottom: 25px !important;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
}

.profile-header .profile-icon {
  width: 75px !important;
  height: 75px !important;
  background: linear-gradient(135deg, rgba(176, 101, 74, 0.2), rgba(176, 101, 74, 0.05)) !important;
  border: 1px solid rgba(176, 101, 74, 0.4) !important;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  color: var(--primary);
}

.use-case-box {
  background: linear-gradient(90deg, rgba(176, 101, 74, 0.15), rgba(176, 101, 74, 0.02)) !important;
  border-left: 4px solid var(--primary) !important;
  padding: 28px !important;
  border-radius: 4px 24px 24px 4px !important;
  margin: 35px 0 !important;
}

.use-case-box strong {
  display: block;
  margin-bottom: 15px;
  color: #ffffff !important;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.use-case-box .domain-highlight {
  color: #ffffff !important;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
}

.back-to-profiles {
  margin-top: 30px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.back-to-profiles:hover {
  transform: translateX(-5px);
  opacity: 0.8;
}

@keyframes fadeInPersona {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Feature Cards inside Default Persona */
#investor-profiles .feature-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: white !important;
}

#investor-profiles .feature-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(176, 101, 74, 0.4) !important;
  transform: translateY(-10px);
}

#investor-profiles .feature-card h3 {
  color: white !important;
  margin-bottom: 12px;
}

#investor-profiles .feature-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-card {
    padding: 30px !important;
  }

  .profile-badges {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

/* ── Mobile hero domain text scaling ── */
@media (max-width: 767px) {
  .hero-domain-url {
    font-size: clamp(1rem, 5.5vw, 2.8rem);
    letter-spacing: 0.12em;
    word-break: break-all;
  }

  .hero-domain-name {
    font-size: clamp(1.8rem, 6.5vw, 3.4rem);
  }

  /* mobile nav is taller than 80px when stacked — increase scroll offset */
  [id] {
    scroll-margin-top: 170px !important;
  }
}