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

/* --- Base & Variables --- */
:root {
  --blue-deep: #071a46;
  --blue-primary: #0d5895;
  --blue-light: #3e94c0;
  --teal: #3bcbc1;
  --text-light: #f0f5ff;
  --text-muted: #a0b3d1;
  --bg-dark: #020617; /* Almost black */
  --bg-card: #0f172a; /* Dark blue-gray */
  --border-color: rgba(62, 148, 192, 0.2);
  --max-width: 1200px;
  --radius: 12px;
  --glass: rgba(15, 23, 42, 0.7);
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text-light);
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 20% 20%, rgba(13, 88, 149, 0.2), transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(59, 203, 193, 0.15), transparent 30%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--blue-light);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-light);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

.section-intro {
  text-align: center;
  margin-bottom: 60px;
}
.section-intro p {
  margin-left: auto;
  margin-right: auto;
}


/* --- Header --- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 160px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
nav a {
    color: var(--blue-deep);
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease;
}
nav a:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button.primary {
  background: linear-gradient(90deg, var(--teal), var(--blue-light));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(59, 203, 193, 0.2);
}
.button.ghost {
  border: 1px solid var(--border-color);
  color: var(--text-light);
}
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 203, 193, 0.3);
}


/* --- Hero Section --- */
.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 strong {
  background: linear-gradient(90deg, var(--blue-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 auto 32px;
  color: var(--text-muted);
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-chat {
    margin-top: 80px;
    perspective: 1000px;
}

.card-chat {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  margin: 0 auto;
  transform: rotateX(10deg) rotateY(-5deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.card-chat:hover {
    transform: rotateX(0) rotateY(0);
}

.mock-chat {
  background: var(--bg-dark);
  padding: 16px;
  border-radius: 10px;
}

.msg {
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  max-width: 85%;
  line-height: 1.4;
}

.from-me {
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.from-user {
  background: #334155; /* Slate 700 */
  color: var(--text-light);
  border-bottom-left-radius: 4px;
}

/* --- Features Section --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: var(--teal);
}

.feature .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--teal);
}

/* --- Steps Section --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.step {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
}
.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-light);
}

/* --- Pricing Section --- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.plan {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.plan.featured {
    border-color: var(--teal);
    transform: scale(1.05);
}
.plan h3 {
    font-size: 1.75rem;
    color: var(--teal);
}
.plan .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 16px 0;
}
.plan ul {
    list-style: none;
    margin: 24px 0;
    color: var(--text-muted);
}
.plan ul li {
    margin-bottom: 12px;
}

/* --- FAQ Section --- */
.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq div {
    padding-top: 16px;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(5px);
    z-index: 60;
}
.modal.visible {
    display: flex;
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius);
    max-width: 420px;
    width: 94%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simple solution for now, could be a hamburger menu */
    }
    .hero {
        padding: 60px 0;
    }
    section {
        padding: 60px 0;
    }
}

/* --- Hero Video --- */
.hero-video {
    margin-top: 80px;
    perspective: 1000px;
}
.hero-video video {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}