/* styles.css — Premium Modern Theme for 2BitHost */
:root {
  --bg: #0f1724;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --muted: #9aa4b2;
  --accent: #21d4a6; /* green-cyan */
  --accent-glow: rgba(33, 212, 166, 0.5);
  --accent-2: #4dd0e1;
  --white: #ffffff;
  --container: 1100px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy smooth feel */
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--white);
  background-color: var(--bg);
  /* Modern Mesh Gradient Background */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(33, 212, 166, 0.08), transparent 25%), 
    radial-gradient(circle at 85% 30%, rgba(77, 208, 225, 0.08), transparent 25%);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* --- Navigation (Glass Effect) --- */
.nav {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 36, 0.7);
  backdrop-filter: blur(12px); /* Frosted Glass */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding 0.3s ease;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo { 
  width: 44px; height: 44px; 
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(33, 212, 166, 0.2));
}
.brand:hover .logo { transform: rotate(360deg); }

.brand-text { 
  font-weight: 800; font-size: 22px; color: var(--white); letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  color: var(--muted); margin-left: 24px; text-decoration: none;
  font-weight: 500; font-size: 15px; position: relative; transition: 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -4px; left: 0; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links{
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: var(--transition); position: relative; overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #032027;
  box-shadow: 0 10px 20px -5px rgba(33, 212, 166, 0.4);
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(33, 212, 166, 0.6);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white); background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05); border-color: var(--white);
  transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero { padding: 100px 0 80px; position: relative; }
.hero-inner { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.hero-left { flex: 1; max-width: 600px; }

/* Animations Classes */
.fade-in-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.hero-left h1 {
  font-size: 52px; margin: 0 0 24px; line-height: 1.1;
  font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #e0e0e0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-left p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 32px; }

.cta-row { display: flex; gap: 16px; margin-top: 12px; }
.meta-list { display: flex; gap: 20px; margin-top: 24px; color: var(--muted); list-style: none; padding: 0; font-size: 14px; }
.meta-list li { display: flex; align-items: center; gap: 6px; }
.meta-list li::before { content: '✓'; color: var(--accent); font-weight: bold; }

.hero-right { width: 450px; perspective: 1000px; } /* 3D perspective */

/* Phone Mockup with Floating Animation */
.phone-mock {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px; border-radius: 20px; height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transform: rotateY(-10deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
}
.phone-mock iframe { width: 100%; height: 100%; border-radius: 12px; border: 0; background: #000; }

/* --- Features Grid --- */
.features { padding: 80px 0; position: relative; }
.features h2, .how h2, .pricing h2, .faq h2, .testimonials h2 {
  font-size: 36px; text-align: center; margin-bottom: 20px;
  background: linear-gradient(180deg, #fff, #999);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center; color: var(--muted); font-size: 18px;
  max-width: 600px; margin: 0 auto 50px; line-height: 1.6;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card {
  background: var(--card-bg); padding: 32px 24px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card:hover {
  background: var(--card-hover);
  transform: translateY(-10px);
  border-color: rgba(33, 212, 166, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}
.card h3 { color: var(--accent); margin-top: 0; font-size: 20px; }
.card h4 { color: var(--white); margin-top: 0; font-size: 18px; }
.card p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }

/* --- How it works --- */
.how { padding: 80px 0; background: rgba(255, 255, 255, 0.01); }
.steps {
  max-width: 700px; margin: 0 auto; counter-reset: step; list-style: none; padding: 0;
}
.steps li {
  position: relative; padding-left: 60px; margin-bottom: 30px;
  color: var(--muted); font-size: 18px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05);
  border-radius: 50%; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.1);
}
.steps li strong { color: var(--white); }

.use-cases { margin-top: 80px; }
.use-cases h3 { text-align: center; margin-bottom: 40px; font-size: 28px; }

/* --- Pricing --- */
.pricing { padding: 80px 0; }
.plan {
  background: var(--card-bg); padding: 40px 30px; border-radius: 24px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition);
  position: relative;
}
.plan:hover { transform: scale(1.03); border-color: var(--accent); }

.plan.highlight {
  background: linear-gradient(180deg, rgba(33, 212, 166, 0.1), rgba(15, 23, 36, 0));
  border: 1px solid var(--accent);
  box-shadow: 0 0 30px rgba(33, 212, 166, 0.15);
}

.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #032027; padding: 6px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}

.plan h3 { font-size: 24px; margin-bottom: 10px; }
.plan .price { font-weight: 800; font-size: 36px; margin: 20px 0; color: var(--white); }

.plan-features {
  list-style: none; padding: 0; margin: 30px 0 0; text-align: left;
}
.plan-features li {
  padding: 8px 0; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.plan-features li:last-child { border-bottom: none; }

/* --- FAQ --- */
.faq { padding: 80px 0; background: rgba(255, 255, 255, 0.01); }
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.faq-item {
  background: var(--card-bg); padding: 24px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.faq-item h3 { color: var(--white); margin-top: 0; font-size: 18px; }
.faq-item p { color: var(--muted); margin-bottom: 0; line-height: 1.6; }

/* --- Testimonials --- */
.testimonials { padding: 80px 0; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
.testimonial-card {
  background: var(--card-bg); padding: 30px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 212, 166, 0.2);
}
.testimonial-text {
  font-style: italic; color: var(--muted); line-height: 1.6;
  margin-bottom: 20px; position: relative;
}
.testimonial-text::before {
  content: '"'; font-size: 60px; color: var(--accent);
  position: absolute; top: -20px; left: -10px;
  opacity: 0.3; font-family: Georgia, serif;
}
.testimonial-author strong {
  display: block; color: var(--white); margin-bottom: 4px;
}
.testimonial-author span {
  font-size: 14px; color: var(--muted);
}

/* --- Footer --- */
.footer-cta { padding: 80px 0; text-align: center; }
.footer-cta h3 { font-size: 32px; margin-bottom: 30px; }
.btn-large { padding: 16px 40px; font-size: 18px; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 60px 0 30px; color: var(--muted); 
  background: rgba(0,0,0,0.2);
}

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 40px; margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white); margin-bottom: 16px; font-size: 18px;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  margin-bottom: 12px; transition: 0.3s;
}
.footer-col a:hover { color: var(--accent); }

.social-links { display: flex; gap: 16px; margin-top: 16px; }
.social-links a {
  display: inline-block; padding: 8px 16px; background: rgba(255,255,255,0.05);
  border-radius: 6px; font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; margin: 0 5px; }
.footer-bottom a:hover { color: var(--accent); }

/* --- Keyframes (The Magic) --- */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
  50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
  100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
}

/* Mobile Tweaks */
@media(max-width: 880px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-right { width: 100%; height: auto; display: flex; justify-content: center; }
  .phone-mock { height: 280px; width: 80%; max-width: 300px; transform: none; animation: none; margin-bottom: 30px; }
  .hero-left h1 { font-size: 36px; }
  .cta-row { justify-content: center; }
  .meta-list { justify-content: center; }
  .nav-links { display: none; } /* Mobile menu can be added separately */
  .footer-bottom { flex-direction: column; text-align: center; }
  .faq-grid { grid-template-columns: 1fr; }
}