/* ==========================================================================
   GoCoastCalc Style Sheet
   Premium Fintech Startup Design System
   ========================================================================== */

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

/* --- Custom Variables & Tokens --- */
:root {
  --bg-primary: #071B2A;
  --bg-secondary: #0b253b;
  --bg-tertiary: #0e304c;
  --text-primary: #FFFFFF;
  --text-secondary: #8E9FBC;
  --text-muted: #536582;
  --color-emerald: #10B981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-orange: #FF9F43;
  --color-orange-glow: rgba(255, 159, 67, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* --- Background Grid Pattern Effect --- */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.bg-radial-gradient {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(255, 159, 67, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, var(--bg-primary) 0%, #030a10 100%);
}

/* --- Typography Utilities --- */
.gradient-text {
  background: linear-gradient(135deg, #FFF 30%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-center { text-align: center; }
.text-emerald { color: var(--color-emerald); }
.text-orange { color: var(--color-orange); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sticky Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.8rem 0;
  background: rgba(7, 27, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--color-emerald);
  filter: drop-shadow(0 0 8px var(--color-emerald-glow));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-emerald);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Premium Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--color-emerald);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px var(--color-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), var(--shadow-glow);
}

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

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--color-emerald);
  transform: translateY(-3px);
}

.btn-orange {
  background: var(--color-orange);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px var(--color-orange-glow);
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 110;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  padding: 9.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-emerald);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Right Side: Rotating 3D Financial Animated Object */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.visual-container {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

/* Outer Orbit Ring */
.orbit-ring {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: 1px dashed rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  animation: rotateClockwise 25s linear infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-emerald);
}

.orbit-ring-alt {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border: 1px dashed rgba(255, 159, 67, 0.12);
  border-radius: 50%;
  transform: rotate3d(1, 1, 0, 45deg);
  animation: rotateCounterClockwise 35s linear infinite;
}

/* 3D Fintech Coin */
.fintech-3d-coin {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg);
  animation: floatingAnimation 6s ease-in-out infinite, spin3DObject 15s linear infinite;
}

.coin-face {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: 40px;
  left: 40px;
  background: linear-gradient(135deg, #0e304c 0%, #071b2a 100%);
  border: 8px solid #10B981;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3), inset 0 0 30px rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(10px);
}

.coin-face-back {
  transform: translateZ(-10px) rotateY(180deg);
  border-color: #FF9F43;
  box-shadow: 0 0 40px rgba(255, 159, 67, 0.3), inset 0 0 30px rgba(255, 159, 67, 0.2);
}

.coin-edge {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: 40px;
  left: 40px;
  background: #082235;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
}

.coin-face svg {
  width: 80px;
  height: 80px;
  fill: var(--color-emerald);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.coin-face-back svg {
  fill: var(--color-orange);
  filter: drop-shadow(0 0 10px rgba(255, 159, 67, 0.5));
}

/* Floating Chart Cube */
.glowing-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  top: 0;
  left: 0;
  filter: blur(20px);
  pointer-events: none;
}

/* --- Section Layout --- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--color-emerald);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: block;
}

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

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Premium Cards System (Glassmorphism) --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.05);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-emerald), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover::before {
  opacity: 1;
}

/* --- Calculator Container --- */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-inputs-card {
  padding: 2.5rem 2rem;
}

.calc-inputs-card::before {
  background: linear-gradient(90deg, transparent, var(--color-emerald), var(--color-orange), transparent);
}

.input-group {
  margin-bottom: 1.75rem;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.input-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tooltip-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: var(--transition-smooth);
  font-size: 0.8rem;
  line-height: 1.4;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  pointer-events: none;
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.input-val-display {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.input-control-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.input-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-emerald);
  transition: var(--transition-smooth);
}

.input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.input-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-emerald);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--color-emerald);
  transition: var(--transition-smooth);
}

.input-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.number-field-wrapper {
  position: relative;
  width: 140px;
}

.currency-prefix {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

.number-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: right;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.number-input-currency {
  padding-left: 1.5rem;
}

.number-input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* --- Results Panel --- */
.calc-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.results-top-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 159, 67, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.banner-icon {
  background: var(--color-emerald);
  color: var(--bg-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--color-emerald-glow);
}

.banner-icon svg {
  width: 24px;
  height: 24px;
}

.banner-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.banner-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.metric-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.metric-val.highlight-emerald {
  color: var(--color-emerald);
}

.metric-val.highlight-orange {
  color: var(--color-orange);
}

.metric-insight {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Interactive Charts Section --- */
.chart-container-card {
  padding: 2rem;
}

.chart-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.chart-tab-btn {
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.chart-tab-btn:hover, .chart-tab-btn.active {
  color: var(--text-primary);
}

.chart-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-emerald);
}

.chart-wrapper {
  position: relative;
  height: 340px;
  width: 100%;
}

.chart-pane {
  display: none;
  height: 100%;
  width: 100%;
}

.chart-pane.active {
  display: block;
}

/* --- SEO Core Educational Article --- */
.seo-article {
  max-width: 900px;
  margin: 0 auto;
}

.seo-article h2 {
  font-size: 2.2rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.seo-article h3 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--color-emerald);
}

.seo-article p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.seo-article ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-article li {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

.seo-article li::marker {
  color: var(--color-emerald);
}

.seo-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.seo-table th, .seo-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.seo-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.seo-table td {
  color: var(--text-secondary);
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Accordion (FAQ) */
.faq-accordion {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question-btn:hover {
  background: rgba(255, 255, 255, 0.015);
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition-smooth);
  color: var(--color-emerald);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 2rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- About Us Page Specific Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.about-feature-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.about-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Contact Us Page Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
}

.contact-detail-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-detail-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-spring);
}

.social-icon-btn:hover {
  transform: scale(1.15);
  border-color: var(--color-emerald);
  box-shadow: 0 0 15px var(--color-emerald-glow);
}

.social-icon-btn.facebook:hover { color: #1877f2; }
.social-icon-btn.twitter:hover { color: #1da1f2; }
.social-icon-btn.linkedin:hover { color: #0a66c2; }
.social-icon-btn.youtube:hover { color: #ff0000; }

.contact-form-card {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-placeholder-card {
  margin-top: 4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  height: 350px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.map-background-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background-image: 
    radial-gradient(circle at 30% 20%, #FFF 2px, transparent 2px),
    radial-gradient(circle at 70% 80%, #FFF 3px, transparent 3px);
  background-size: 20px 20px;
}

.map-placeholder-card svg {
  width: 60px;
  height: 60px;
  color: var(--color-emerald);
  margin-bottom: 1rem;
  z-index: 1;
}

.map-placeholder-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.map-placeholder-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
  z-index: 1;
}

/* --- Legal / Documentation Style --- */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-card {
  padding: 3rem;
}

.legal-card h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-emerald);
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* --- Premium Footer --- */
.footer {
  background: #030d15;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--color-emerald);
  transform: translateX(3px);
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--color-emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-link:hover {
  color: var(--color-emerald);
}

/* --- Success Popup Modal --- */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(3, 10, 16, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.success-modal.active {
  opacity: 1;
  pointer-events: all;
}

.success-modal-card {
  max-width: 450px;
  width: 90%;
  text-align: center;
  padding: 3rem 2rem;
}

.success-modal-icon {
  width: 64px;
  height: 64px;
  background: var(--color-emerald);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: 0 0 20px var(--color-emerald-glow);
}

.success-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success-modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* --- GPU Optimized Keyframe Animations --- */
@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatingAnimation {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -15px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes spin3DObject {
  0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg); }
  100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(405deg); }
}

/* Scroll Triggered Animations Setup */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #051420;
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 6rem 2rem;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    z-index: 105;
  }
  .nav-menu.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .header-cta .btn {
    display: none; /* Hide from navbar to avoid clutter on mobile */
  }
  .results-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    width: 100%;
  }
  .card, .calc-inputs-card, .calc-results-panel {
    padding: 1.5rem;
  }
  .faq-question-btn {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
  }
}
