:root {
  /* Colors inspired by Brain.fm deep dark aesthetics & Google Stitch */
  --bg-color-dark: #07090f;
  --bg-color-medium: rgba(20, 24, 38, 0.4);
  --primary-color: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.4);
  --secondary-color: #7a22ff;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  --font-family: 'Inter', 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section {
  scroll-margin-top: 200px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography Utility */
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Background Effects (Brain.fm style mesh) */
.mesh-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background-color: #07090f;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}

.mesh-blob-1 {
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: #2a0845;
}

.mesh-blob-2 {
  bottom: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: #004e92;
  animation-delay: -5s;
}

.mesh-blob-3 {
  top: 30%; left: 30%;
  width: 40vw; height: 40vw;
  background: #1a0b2e;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-50px) scale(1.1) rotate(10deg); }
  100% { transform: translateY(20px) scale(0.9) rotate(-10deg); }
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Common Glassmorphism Card (Google Stitch inspired) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* Navigation Pill */
.glass-pill-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.8rem 5%;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-wrapper {
  background: #ffffff;
  padding: 8px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 120px;
  width: auto;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-subtext {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.arrow {
  transition: transform 0.3s ease;
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14rem 5% 4rem;
  position: relative;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 5rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Mockup Component */
.dashboard-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.border-bottom {
  border-bottom: 1px solid #1f2533;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 1.5rem;
}

.dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  pointer-events: none;
}

.dashboard-content {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.data-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.3s ease;
}

.data-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.data-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 10px;
}

.data-info {
  display: flex;
  flex-direction: column;
}

.data-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.data-value .unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.data-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

/* Features Grid */
.features {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

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

.feature-card {
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 210, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 210, 255, 0.1);
}

.glowing-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

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

/* Integration Section */
.code-section {
  padding: 6rem 5% 8rem;
}

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

.code-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.code-content p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.api-tester {
  padding: 2rem;
}

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

.tester-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.status-indicator {
  width: 8px; height: 8px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 10px #27c93f;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glass-input {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.trigger-btn {
  width: 100%;
}

.response-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #000;
  border: 1px solid #1f2533;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
}

/* Code Window */
.code-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  height: 100%;
}

.code-title {
  color: #a0a0b0;
}

.code-body {
  padding: 2rem;
  background: #0a0c10;
  color: #c9d1d9;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  position: relative;
}

.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-function { color: #d2a8ff; }
.code-comment { color: #8b949e; font-style: italic; }

/* Loading Spinner for button */
.loading-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  background: #040508;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-img {
  width: 32px;
  height: auto;
  filter: grayscale(100%) brightness(2);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.text-link:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .integration-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .input-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
  .dashboard-content { grid-template-columns: 1fr; }
}

/* Security Section */
.security-section {
  padding: 6rem 5%;
}
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.security-list {
  list-style: none;
  margin-top: 2rem;
}
.security-list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}
.security-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}
.security-visual {
  padding: 3rem;
  text-align: center;
}
.shield-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.pulse-glow {
  text-shadow: 0 0 20px var(--primary-glow);
  animation: slowPulse 3s infinite alternate;
}
@keyframes slowPulse {
  from { opacity: 0.7; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}
.status-line {
  font-family: 'Fira Code', monospace;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}
.check {
  color: #27c93f;
  margin-right: 10px;
}

/* Contact Section */
.contact-section {
  padding: 6rem 5% 8rem;
}
.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive updates for new sections */
@media (max-width: 992px) {
  .security-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Extreme Chrome Autofill Override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #0a0c10 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s !important;
    background-color: transparent !important;
}
