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

:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: rgba(30, 41, 59, 0.7);
  --accent-primary: #ec4899;
  --accent-secondary: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --max-width: 1120px;
}

body.page {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #22275f 0%, #050513 55%, #020208 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Info bar */
.info-bar {
  background: rgba(10, 10, 10, 0.9);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
}

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

.header-actions {
  display: flex;
  gap: 0.5rem;
}

/* Main */
.page-main {
  flex: 1;
  width: 100%;
}

/* Hero */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 300px;
  height: 600px;
  border-radius: 40px;
  border: 8px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at center, #2d3748, #1a202c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-accent {
  text-align: center;
  padding: 8rem 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-inner h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* Card Row (Horizontal Scroll) */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, background 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Grid Features */
.grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 1rem;
}

.feature-item h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

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

/* Footer */
.footer {
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 0.8rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

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

/* Floating button */
.floating-button {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 3s infinite;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-right {
    order: -1;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-subtitle {
      margin-left: auto;
      margin-right: auto;
  }
  
  .nav {
      display: none;
  }
  
  .footer-inner {
      grid-template-columns: 1fr 1fr;
  }
  
  .grid-features {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-column {
        align-items: center;
    }
    .hero-left h1 {
        font-size: 2.5rem;
    }
}
