:root {
  --ink-900: #050608;
  --ink-800: #0a0d11;
  --ink-700: #12171c;
  --jade-500: #10B981;
  --jade-400: #34D399;
  --gold-500: #D4AF37;
  --gold-400: #FBBF24;
  --ivory-100: #F9FAFB;
  --ivory-300: #D1D5DB;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Manrope', sans-serif;
  
  --glass-bg: rgba(18, 23, 28, 0.6);
  --glass-border: rgba(212, 175, 55, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ink-900);
  color: var(--ivory-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 25%);
  overflow-x: hidden;
}

/* Background Texture */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/bg_texture.png');
  background-repeat: repeat;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, .brand-mark {
  font-family: var(--font-serif);
  color: var(--ivory-100);
  font-weight: 600;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--gold-500);
  margin-bottom: 1rem;
  font-weight: 700;
}

.highlight {
  color: var(--jade-500);
  font-style: italic;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  color: var(--ivory-100);
  font-size: 1.125rem;
  font-family: var(--font-serif);
}

.brand-copy small {
  color: var(--jade-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--ivory-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold-400);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.headline {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--ivory-300);
  max-width: 90%;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 0.25rem 0.75rem;
  background: var(--ink-800);
  border: 1px solid var(--jade-500);
  color: var(--jade-400);
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Main Icon */
.hero-main-icon {
  width: 100%;
  max-width: 360px;
  border-radius: 22.5%; /* iOS squircle approximation */
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 50px rgba(16, 185, 129, 0.25);
  animation: float-simple 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.05);
}

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

/* Buttons */
.button-row {
  display: flex;
  gap: 1rem;
}

.button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--jade-500), var(--jade-400));
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.button-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-500);
}

/* Hand Showcase inside Feature Cards */
.hand-showcase {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.showcase-tiles {
  display: flex;
  gap: 4px;
}

.showcase-tile {
  width: 32px;
  height: 44px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.showcase-tile:hover {
  transform: translateY(-2px);
}

.showcase-label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.showcase-label strong {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-label span {
  color: var(--jade-400);
}

/* Feature Grid & Cards */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card, .contact-card, .quick-card, .service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before, .contact-card::before, .quick-card::before, .service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jade-500), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover, .contact-card:hover, .quick-card:hover, .service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-card:hover::before, .contact-card:hover::before, .quick-card:hover::before, .service-card:hover::before {
  opacity: 1;
}

.feature-card h3, .contact-card h3, .quick-card h3, .service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-400);
}

/* Doc Pages Specifics */
.doc-hero {
  padding: 10rem 0 4rem;
}

.support-grid, .doc-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.doc-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
}

.doc-lede {
  font-size: 1.25rem;
  color: var(--ivory-300);
}

.doc-keyline {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--jade-500);
  font-style: italic;
  color: var(--ivory-100);
}

.support-panel, .doc-panel {
  max-width: 90%;
}

/* Dual Grid for Docs */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.page-panel {
  background: var(--ink-800);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 8px;
}

.page-panel ul {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

.page-panel li {
  margin-bottom: 0.75rem;
  color: var(--ivory-300);
}

.page-panel li::marker {
  color: var(--jade-500);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--ink-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--ivory-300);
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--gold-400);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ivory-100);
  font-size: 1.125rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span:last-child {
  color: var(--jade-500);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: var(--ivory-300);
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid, .dual-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .headline {
    font-size: 2.5rem;
  }
  
  .nav {
    display: none; /* simple mobile nav approach */
  }
  
  .floating-tiles {
    height: 300px;
  }
}
