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

:root {
  --primary-50: #f6f9fd;
  --primary-100: #eaf0fa;
  --primary-200: #cddbfa;
  --primary-300: #a9c4ef;
  --primary-400: #5887d9;
  --primary-500: #2660d3;
  --primary-600: #1b4d9f;
  --primary-700: #173b76;
  --primary-800: #102349;
  --primary-900: #0a1a34;

  --platinum-50: #f3f5f9;
  --platinum-100: #ebeef3;
  --platinum-200: #e0e2e7;
  --platinum-300: #ced0d7;
  --platinum-400: #aeb4be;
  --platinum-500: #7b848e;
  --platinum-600: #5d6670;
  --platinum-700: #484e57;
  --platinum-800: #383c41;
  --platinum-900: #22232a;

  --sapphire-50: #f6f9fd;
  --sapphire-700: #173b76;
  --sapphire-800: #102349;
  --sapphire-900: #0a1a34;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(to bottom right, var(--sapphire-50), #ffffff, var(--platinum-50));
  color: var(--sapphire-800);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  background: linear-gradient(to right, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(38, 96, 211, 0.12);
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(to right, var(--primary-600), var(--primary-700));
  box-shadow: 0 8px 32px 0 rgba(38, 96, 211, 0.2);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.4);
  color: var(--primary-700);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ========== Cards ========== */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(174, 180, 190, 0.35);
  box-shadow: 0 4px 32px 0 rgba(38, 96, 211, 0.12);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: 0 25px 50px -12px rgba(38, 96, 211, 0.25);
  transform: scale(1.02);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(174, 180, 190, 0.35);
  box-shadow: 0 4px 32px 0 rgba(38, 96, 211, 0.12);
}

.glass-section {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.05), rgba(255,255,255,0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(174, 180, 190, 0.35);
  box-shadow: 0 25px 50px -12px rgba(38, 96, 211, 0.25);
}

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(174, 180, 190, 0.35);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}
.logo svg { flex-shrink: 0; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sapphire-800);
  position: relative;
  transition: color 0.3s;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--primary-600); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-500), var(--primary-600));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--platinum-600);
  font-size: 1.5rem;
  padding: 0.25rem;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/static/images/photo-1600596542815-ffad4c1539a9.jpg') center/cover no-repeat;
  background-color: #1a2a4a;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* glass-hero from original: from-sapphire-900/40 via-sapphire-800/30 to-sapphire-900/20 backdrop-blur-xs */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(10, 26, 52, 0.25),
    rgba(16, 35, 73, 0.18),
    rgba(10, 26, 52, 0.12)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  margin: 0 auto;
  padding: 0 1rem;
}
/* glass-section + bg-sapphire-900/50 backdrop-blur-lg border-white/20 rounded-3xl */
.hero-box {
  background: rgba(30, 50, 90, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(38, 96, 211, 0.25);
}
@media (min-width: 768px) {
  .hero-box {
    padding: 3rem;
    border-radius: 1.5rem;
  }
}
.hero-box h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hero-box p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.90);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ========== Sections ========== */

.section { padding: 4rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--sapphire-800);
  margin-bottom: 0.75rem;
}
.section-title p { color: var(--platinum-600); }

.section-dark {
  background: linear-gradient(to bottom right, var(--sapphire-900), var(--sapphire-800), var(--sapphire-900));
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: rgba(205, 219, 250, 0.85); }

.section-light {
  background: linear-gradient(to bottom right, var(--sapphire-50), var(--platinum-100));
  padding: 4rem 0;
}

/* ========== Grids ========== */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ========== Step / Feature cards ========== */
.step-card {
  text-align: center;
  padding: 1.5rem;
}
.step-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.step-card:hover .step-icon { transform: scale(1.1); }
.step-icon-dark {
  background: linear-gradient(to bottom right, var(--primary-500), var(--primary-600));
  color: #fff;
}
.step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}
.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sapphire-800);
  margin-bottom: 0.5rem;
}
.step-card p {
  color: var(--platinum-600);
  font-size: 0.95rem;
}
.section-dark .step-card h3 { color: #fff; }
.section-dark .step-card p { color: rgba(205, 219, 250, 0.85); }
.section-dark .card {
  background: rgba(16, 35, 73, 0.3);
  border-color: rgba(23, 59, 118, 0.3);
  backdrop-filter: blur(16px);
}
.section-dark .card:hover {
  background: rgba(23, 59, 118, 0.4);
}

/* ========== Property cards ========== */
.property-img {
  height: 12rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .property-img { transform: scale(1.05); }
.property-img-wrap {
  position: relative;
  height: 12rem;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}
.property-body { padding: 1.5rem; }
.property-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sapphire-800);
  margin: 0.5rem 0 0.25rem;
}
.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1rem 0;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ========== CTA ========== */
.cta-box {
  background: linear-gradient(to bottom right, var(--primary-600), var(--primary-700));
  color: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(38, 96, 211, 0.35);
}
@media (min-width: 768px) { .cta-box { padding: 3rem; } }
.cta-box h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.cta-box p { opacity: 0.95; margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* ========== Footer ========== */
.footer {
  background: var(--platinum-900);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer a, .footer p {
  color: var(--platinum-400);
  font-size: 0.875rem;
  line-height: 1.9;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--platinum-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--platinum-400);
  font-size: 0.875rem;
}

/* ========== Forms ========== */
.input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--platinum-200);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  box-shadow: 0 4px 32px 0 rgba(38, 96, 211, 0.08);
  transition: all 0.3s;
}
.input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(38, 96, 211, 0.2);
}

/* ========== Icons (inline SVG helpers) ========== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Mobile nav open state */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--platinum-200);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-links.open a {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}
.nav-links.open a:hover {
  background: var(--primary-50);
}

/* ========== Community / Discord section (from React) ========== */
.community-section {
  background: var(--primary-900);
  color: #fff;
  padding: 3rem 0;
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.community-left h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .community-left h2 { font-size: 2.25rem; }
}
.community-lead {
  font-size: 1.125rem;
  color: var(--primary-100);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.community-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.community-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.community-feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--primary-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-feature-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
}
.community-feature-desc {
  font-size: 0.95rem;
  color: var(--primary-100);
}
.community-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 2rem;
  max-width: 24rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1024px) {
  .community-card { margin: 0 0 0 auto; }
}
.community-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
.community-card > p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.community-btn {
  width: 100%;
  background: #4f46e5 !important;
  background-image: none !important;
  padding: 0.875rem 1.5rem !important;
  font-size: 1rem !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
}
.community-btn:hover {
  background: #4338ca !important;
  transform: none;
}
.community-signin {
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
  color: #6b7280 !important;
}
.community-signin a {
  color: #4f46e5;
  font-weight: 500;
}
.community-signin a:hover {
  color: #4338ca;
}

/* Navbar Connect button — force white text */
.navbar .btn {
  color: #fff !important;
}

/* FAQ accordion on home */
.faq-item {
  border-top: 1px solid var(--platinum-100);
}
.faq-item:first-child {
  border-top: none;
}
.faq-q {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--sapphire-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--platinum-500);
  font-weight: 400;
}
details[open] .faq-q::after {
  content: '−';
}
.faq-a {
  padding: 0 1.5rem 1.25rem;
  color: var(--platinum-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Login icon in navbar */
.nav-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sapphire-800);
  padding: 0.35rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}
.nav-login-icon:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}
.nav-login-icon::after { display: none !important; }

/* Buttons not yet wired: same look as normal, no navigation */
.btn-soon {
  cursor: pointer;
}

/* Wallet connect modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-modal[hidden] { display: none !important; }
.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 52, 0.55);
  backdrop-filter: blur(4px);
}
.wallet-modal-box {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(38, 96, 211, 0.35);
}
.wallet-modal-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sapphire-800);
  margin-bottom: 0.35rem;
}
.wallet-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--platinum-200);
  border-radius: 0.75rem;
  background: var(--platinum-50);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sapphire-800);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.wallet-option:hover:not(:disabled) {
  border-color: var(--primary-400);
  background: var(--primary-50);
}
.wallet-option:disabled {
  cursor: default;
  opacity: 1;
}
