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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --bg: #0f172a; /* Deep Slate Background */
  --bg-alt: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --card: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(15, 23, 42, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===============================
   HEADER / NAVBAR
   =============================== */
.header {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(135deg, #fff 50%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-login-nav {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-login-nav:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  padding: 120px 0 160px;
  background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.03;
  pointer-events: none;
}

.tagline {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -2px;
  background: linear-gradient(to bottom right, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 100px;
  animation: fadeInUp 1s ease-out;
}

.cta-button {
  padding: 16px 40px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.free-trial {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.free-trial:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.login-hero {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.login-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.hero-preview {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  perspective: 1000px;
}

.hero-preview img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  transform: rotateX(5deg);
  transition: transform 0.5s;
}

.hero-preview:hover img {
  transform: rotateX(0deg) scale(1.02);
}

/* ===============================
   FEATURE SECTIONS
   =============================== */
.feature-section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.light-bg {
  background: var(--bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 120px;
}

.feature-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.feature-image {
  position: relative;
}

.feature-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.4s;
}

.feature-image:hover img {
  transform: translateY(-10px);
}

/* ===============================
   FOOTER
   =============================== */
.footer {
  background: #070b14;
  padding: 100px 0 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #fff;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  line-height: 2.5;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 60px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 1rem;
}

.social-media {
  display: flex;
  gap: 24px;
}

.social-media a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
  background: var(--primary);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

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

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

/* ─── Responsive ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-section { padding: 80px 0 100px; }
  .hero-content h1 { font-size: 2.8rem; letter-spacing: -1px; }
  .feature-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .feature-section { padding: 80px 0; }
  .hero-actions { flex-direction: column; align-items: center; padding: 0 20px; gap: 16px; }
  .cta-button { width: 100%; text-align: center; padding: 14px 28px; }
  .navbar-content { padding: 16px 0; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .reverse-grid { direction: ltr; }
}

/* Large Phone */
@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.2rem; }
  .tagline { font-size: 0.75rem; padding: 6px 14px; }
  .feature-text h2 { font-size: 2rem; }
  .feature-text p { font-size: 1rem; }
  .footer { padding: 60px 0 32px; }
  .footer-links { gap: 32px; padding-bottom: 40px; }
  .hero-preview img { transform: rotateX(0deg); }
}

/* Small Phone */
@media (max-width: 380px) {
  .hero-content h1 { font-size: 1.8rem; }
  .cta-button { font-size: 0.95rem; padding: 12px 20px; }
  .logo span { display: none; }
  .logo img { height: 28px; }
}
