/* ============================================
   AiCreateLab — Main Stylesheet
   ============================================ */

:root {
  --bg:        #080c14;
  --bg-2:      #0d1220;
  --bg-card:   #111827;
  --bg-card-h: #141e2e;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.14);

  --text:      #e8edf5;
  --text-2:    #8a95a8;
  --text-3:    #4f5a6b;

  --accent:    #3b82f6;
  --accent-2:  #06b6d4;
  --accent-3:  #8b5cf6;
  --green:     #10b981;
  --orange:    #f59e0b;

  --radius:    12px;
  --radius-lg: 20px;
  --trans:     0.2s ease;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--trans), backdrop-filter var(--trans);
}

.nav.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__logo-img { width: 32px; height: 32px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--trans);
  letter-spacing: 0.01em;
}

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

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

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--trans);
}

.lang-toggle:hover {
  border-color: var(--border-h);
  color: var(--text);
}

/* Login button */
.btn-login {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--trans);
}

.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  letter-spacing: 0.01em;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-h);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1d4ed8, transparent 70%);
  top: -100px; left: -100px;
}

.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0e7490, transparent 70%);
  bottom: 0; right: 10%;
}

.hero__content {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  width: fit-content;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual - code block */
.hero__visual {
  position: absolute;
  right: max(24px, calc(50% - 560px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero__device {
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.hero__device-screen {
  padding: 24px;
}

.hero__code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.hero__code-line { display: flex; }
.hero__code-line--in { padding-left: 1.5em; }
.hero__code-line--in2 { padding-left: 3em; }

.c-kw  { color: #c084fc; }
.c-cls { color: #67e8f9; }
.c-str { color: #86efac; }
.c-fn  { color: #93c5fd; }
.c-cmt { color: var(--text-3); font-style: italic; }

/* ── STATS ───────────────────────────────── */
.stats {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}

.stats__item:last-child { border-right: none; }

.stats__num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.stats__plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  vertical-align: super;
}

.stats__label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-align: center;
}

/* ── SECTIONS ────────────────────────────── */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.section__header p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
}

.section__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── CARDS ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card--app::before { background: radial-gradient(ellipse at top left, rgba(59,130,246,0.06), transparent 60%); }
.card--tool::before { background: radial-gradient(ellipse at top left, rgba(139,92,246,0.06), transparent 60%); }

.card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.card:hover::before { opacity: 1; }

.card--coming {
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-card),
    var(--bg-card) 10px,
    rgba(255,255,255,0.012) 10px,
    rgba(255,255,255,0.012) 20px
  );
  opacity: 0.7;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon--blue   { background: rgba(59,130,246,0.12); color: #60a5fa; }
.card__icon--cyan   { background: rgba(6,182,212,0.12);  color: #22d3ee; }
.card__icon--purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.card__icon--dim    { background: rgba(255,255,255,0.04); color: var(--text-3); }

.card__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.card__badge--live { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.card__badge--soon { background: rgba(245,158,11,0.12);  color: var(--orange); border: 1px solid rgba(245,158,11,0.2); }

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--trans), color var(--trans);
  width: fit-content;
  margin-top: 4px;
}

.card__cta:hover { gap: 10px; color: var(--accent-2); }

/* ── ABOUT ───────────────────────────────── */
.about { padding: 100px 0; }

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

.about__text { display: flex; flex-direction: column; gap: 20px; }

.about__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about__text p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}

.about__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about__stack span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Terminal */
.terminal {
  background: #0a0e1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.terminal__bar {
  background: #0f1420;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal__bar span:not(.terminal__title) {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: auto;
}

.terminal__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal__line {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.7;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.t-prompt { color: var(--accent-2); }
.t-cmd    { color: var(--text); }
.t-out    { color: #86efac; padding-left: 0; }

.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent-2);
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── CONTACT ─────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-2);
}

.contact__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact__inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact__inner p {
  font-size: 1rem;
  color: var(--text-2);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.footer__logo { width: 24px; height: 24px; }

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--trans);
}

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

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }
  .about__inner { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) { border-right: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { text-align: left; }
}

/* ── PAGE TRANSITIONS ────────────────────── */
body { animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
