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

:root {
  --bg-darker: #051014;
  --bg: #0a1a1f;
  --bg-light: #0f2329;
  --bg-lighter: #0e2e2e;
  --fg: #f8f4f9;
  --fg-muted: #7c3626;
  --orange: #f47c20;
  --orange-hover: #d66810;
  --teal: #2a7f7f;
  --teal-hover: #1f6060;
  --brown: #7c3626;
  --peach: #fce0d0;
  --red: #ff6b6b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-darker);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(244, 124, 32, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(42, 127, 127, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(124, 54, 38, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--orange);
  color: var(--bg-darker);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 16, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 124, 32, 0.2);
  padding: 0 2rem;
}

header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.2rem;
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--orange);
}

.header-nav a.active {
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--orange) 0%, var(--teal) 50%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--bg-darker);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--fg);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  border: 1px solid var(--brown);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

/* Preview */
.preview-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(244, 124, 32, 0.15);
  animation: float 6s ease-in-out infinite;
}

.preview-container img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-container::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg) 50%, var(--bg-darker) 100%);
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid rgba(42, 127, 127, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(244, 124, 32, 0.12);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

.feature-card a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.feature-card a:hover {
  color: var(--orange);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-top: 1px solid rgba(124, 54, 38, 0.3);
}

footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--teal);
}

/* Page header (used on subpages) */
.page-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 2rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  font-weight: 300;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .header-nav {
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}
