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

:root {
  --primary: #4f46e5; /* Indigo 600 */
  --primary-glow: rgba(79, 70, 229, 0.2);
  --secondary: #0ea5e9; /* Sky 500 */
  --accent: #8b5cf6; /* Violet 500 */
  --bg-dark: #f8fafc; /* Slate 50 */
  --bg-card: rgba(255, 255, 255, 0.7); /* Transparency for glass effect */
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --glass-bg: rgba(255, 255, 255, 0.85); /* Slightly opaque white */
  --glass-border: rgba(0, 0, 0, 0.06); /* Very subtle dark border */
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --en-gold: #c29b40;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
  filter: blur(60px);
}

.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

/* Layout & Panels */
.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 8rem 0;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn {
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
  background: #4338ca;
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

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

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Logo Animation Styles */
.animate-logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.animate-logo img {
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
  transition: filter 0.3s ease;
  mix-blend-mode: multiply;
}

.animate-logo:hover img {
  filter: drop-shadow(0 10px 25px rgba(79, 70, 229, 0.2)) saturate(1.2);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

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

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.15);
  margin-bottom: 2rem;
  display: inline-block;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
}

/* Stats */
.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  padding: 4rem;
  margin: 4rem auto 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.05);
  width: 100%;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Fix for Hero content items skew */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Generic Section */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

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

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Features */
.feature-timeline {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-step {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.feature-visual {
  flex: 1;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.feature-visual::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.15;
}

.feature-row.reverse .feature-visual::before {
  background: var(--secondary);
}

.feature-row:last-child .feature-visual::before {
  background: var(--accent);
}

.feature-icon {
  width: 100px;
  height: 100px;
  z-index: 1;
  opacity: 0.9;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-logo-wrapper {
  height: 70px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.product-logo-wrapper img {
  max-width: 250px;
  max-height: 100%;
  object-fit: contain;
}

.product-card p {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hub-tag {
  background: rgba(194, 155, 64, 0.1);
  color: #a17f2e;
  border: 1px solid rgba(194, 155, 64, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-features {
  padding: 4rem;
  background: rgba(255, 255, 255, 0.8);
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon-small {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h5 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* FAQ */
.faq-details {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.faq-details[open] {
  border-color: rgba(79, 70, 229, 0.3);
}
.faq-summary {
  padding: 1.5rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* Removes default arrow in modern browsers */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Removes default arrow in Safari */
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.3s ease;
}
.faq-details[open] .faq-summary::after {
  transform: rotate(45deg);
}
.faq-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact & Forms */
.contact-panel {
  padding: 6rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

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

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

/* Footer */
footer {
  padding: 5rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  background: rgba(248, 250, 252, 0.8);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

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

/* Global Reset for Skew Fixes */
main {
  width: 100%;
  overflow-x: hidden;
}

section .container {
  display: flex;
  flex-direction: column;
}

/* Base Animations */
.hero-content, .stats-container, .feature-row, .product-card, .about-grid, .contact-panel {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
  .hero h1 { font-size: 4rem; }
  .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .nav-links { display: none; }
  .stats-container { flex-direction: column; gap: 2rem; padding: 2rem; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-panel { padding: 4rem 2rem; }
}
