﻿/*  ForgeAI Website  style.css  */

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

/*  Base  */
:root {
  --forge-50: #fff7ed;
  --forge-100: #ffedd5;
  --forge-200: #fed7aa;
  --forge-300: #fdba74;
  --forge-400: #fb923c;
  --forge-500: #f97316;
  --forge-600: #ea580c;
  --forge-700: #c2410c;
  --forge-800: #9a3412;
  --forge-900: #7c2d12;
  --forge-950: #431407;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #09090b;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/*  Utility  */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forge-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.section-desc {
  color: #a1a1aa;
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

[data-animate] {
  opacity: 0;
}

[data-animate].visible {
  animation: fadeInUp 0.7s ease-out forwards;
}

/*  Backgrounds  */
.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-glow {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249,115,22,0.12), transparent);
}

.glow-border {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.12), 0 0 60px rgba(249, 115, 22, 0.04);
}

.border-t-zinc { border-top: 1px solid #27272a; }
.border-b-zinc { border-bottom: 1px solid #27272a; }

/*  NAVBAR  */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--forge-500), var(--forge-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.navbar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.875rem;
  color: #a1a1aa;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #ffffff;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-outline {
  color: #d4d4d8;
  border: 1px solid #3f3f46;
  background: transparent;
}

.btn-outline:hover {
  color: #ffffff;
  border-color: #71717a;
}

.btn-primary {
  background: var(--forge-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
  background: var(--forge-500);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #a1a1aa;
  padding: 0.5rem;
  cursor: pointer;
}

.navbar-mobile {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #27272a;
  padding: 1rem 1.5rem;
  z-index: 49;
}

.navbar-mobile.open {
  display: block;
}

.navbar-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #a1a1aa;
  border-bottom: 1px solid #27272a;
}

.navbar-mobile a:last-child {
  border-bottom: none;
}

.navbar-mobile a:hover {
  color: #ffffff;
}

/*  HERO  */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(64px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-decoration-1 {
  top: 25%;
  left: 20%;
  background: rgba(249, 115, 22, 0.06);
}

.hero-decoration-2 {
  bottom: 25%;
  right: 20%;
  background: rgba(249, 115, 22, 0.04);
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  background: rgba(24, 24, 27, 0.5);
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-slow 3s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.hero-install {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
}

.hero-install code {
  font-size: 0.8rem;
  color: #d4d4d8;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
}

.hero-install .dollar {
  color: var(--forge-400);
}

.hero-install button {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.hero-install button:hover {
  background: #27272a;
  color: #ffffff;
}

/*  STATS  */
.stats {
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}

.stats-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.stats-label {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.25rem;
}

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

.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.5);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: #18181b;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* Icon backgrounds */
.icon-forge { background: rgba(249, 115, 22, 0.1); }
.icon-blue { background: rgba(59, 130, 246, 0.1); }
.icon-green { background: rgba(34, 197, 94, 0.1); }
.icon-purple { background: rgba(168, 85, 247, 0.1); }
.icon-red { background: rgba(239, 68, 68, 0.1); }
.icon-amber { background: rgba(245, 158, 11, 0.1); }
.icon-cyan { background: rgba(6, 182, 212, 0.1); }
.icon-emerald { background: rgba(16, 185, 129, 0.1); }
.icon-pink { background: rgba(236, 72, 153, 0.1); }
.icon-orange { background: rgba(249, 115, 22, 0.1); }

/*  ARCHITECTURE  */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.5);
}

.arch-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.arch-item p {
  font-size: 0.875rem;
  color: #a1a1aa;
}

/* Code preview */
.code-window {
  border-radius: 1rem;
  border: 1px solid #27272a;
  background: #18181b;
  overflow: hidden;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #27272a;
  background: #09090b;
}

.code-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.code-dot-red { background: rgba(239, 68, 68, 0.8); }
.code-dot-yellow { background: rgba(234, 179, 8, 0.8); }
.code-dot-green { background: rgba(34, 197, 94, 0.8); }

.code-filename {
  font-size: 0.75rem;
  color: #71717a;
  font-family: monospace;
  margin-left: 0.5rem;
}

.code-content {
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.code-content .key { color: var(--forge-400); }
.code-content .service { color: #60a5fa; }
.code-content .prop { color: #71717a; }
.code-content .str { color: #4ade80; }
.code-content .env { color: #fbbf24; }

/*  PROVIDERS  */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.5);
  transition: all 0.2s;
}

.provider-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.provider-card-highlight {
  grid-column: span 2;
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.03);
}

.provider-card-highlight:hover {
  background: rgba(249, 115, 22, 0.07);
}

.provider-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.provider-desc {
  font-size: 0.625rem;
  color: #71717a;
}

/*  DASHBOARD  */
.dashboard-window {
  border-radius: 1rem;
  border: 1px solid #27272a;
  background: #18181b;
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
}

.dashboard-body {
  display: flex;
}

.dashboard-sidebar {
  width: 12rem;
  border-right: 1px solid #27272a;
  background: #09090b;
  padding: 0.75rem;
}

.dashboard-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-sidebar-logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, var(--forge-500), var(--forge-700));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-sidebar-logo span {
  font-size: 0.875rem;
  font-weight: 700;
}

.dashboard-nav-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #71717a;
  margin-bottom: 0.125rem;
}

.dashboard-nav-item.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--forge-400);
  font-weight: 500;
}

.dashboard-main {
  flex: 1;
  padding: 1.5rem;
}

.dashboard-main h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dashboard-stat {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.5);
}

.dashboard-stat-label {
  font-size: 0.625rem;
  color: #71717a;
  text-transform: uppercase;
}

.dashboard-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dashboard-chart {
  height: 6rem;
  border-radius: 0.5rem;
  background: rgba(39, 39, 42, 0.3);
  border: 1px solid rgba(63, 63, 70, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.75rem;
  gap: 0.25rem;
}

.chart-bar {
  width: 0.75rem;
  border-radius: 0.25rem;
}

/* Pages grid */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.page-badge {
  font-size: 0.75rem;
  text-align: center;
  color: #71717a;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #27272a;
}

.page-badge-highlight {
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--forge-400);
}

/*  CTA  */
.cta-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--forge-500), var(--forge-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.2);
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: #a1a1aa;
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

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

/*  FOOTER  */
.footer {
  border-top: 1px solid #27272a;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--forge-500), var(--forge-700));
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #71717a;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.75rem;
  color: #52525b;
}

/*  RESPONSIVE  Tablet  */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .provider-card-highlight {
    grid-column: span 3;
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pages-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-sidebar {
    display: none;
  }
}

/*  RESPONSIVE  Mobile  */
@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  /* Navbar */
  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-actions .btn-outline span {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

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

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-install {
    width: 100%;
    overflow-x: auto;
  }

  .hero-install code {
    font-size: 0.7rem;
  }

  .hero-decoration {
    width: 12rem;
    height: 12rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .stats-value {
    font-size: 1.75rem;
  }

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

  .section-title {
    font-size: 1.6rem;
  }

  /* Providers */
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .provider-card-highlight {
    grid-column: span 2;
  }

  /* Dashboard */
  .dashboard-window {
    border-radius: 0.75rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .pages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA */
  .cta-title {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn-lg {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/*  RESPONSIVE  Small Mobile  */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

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

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

  .pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}