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

:root {
  --bg: #050507;
  --bg-app: #09090b;
  --surface: #111114;
  --surface-bright: #1c1c21;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.14);
  --text: #ecedee;
  --text-muted: #8e9094;
  --text-dim: #5c5e61;

  --accent: #4c7dff;
  --accent-glow: rgba(76, 125, 255, 0.35);
  --accent-soft: rgba(76, 125, 255, 0.1);

  --purple: #9d5cff;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-w: 260px;
  --header-h: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --glow-accent: 0 0 20px rgba(76, 125, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

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

/* ─── UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass {
  background: rgba(17, 17, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(76, 125, 255, 0.25);
}

.btn-primary:hover {
  background: #3a69e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 125, 255, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(255,255,255,0.06);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(5,5,7,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.mobile-nav .mobile-cta {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  justify-content: center;
  font-weight: 700;
  border-color: transparent;
}

/* ─── HERO SECTION ─── */
.hero {
  padding: 120px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76,125,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-content > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── LIVE APP PREVIEW (HERO RIGHT) ─── */
.app-preview-container {
  perspective: 1600px;
}

.app-window {
  width: 100%;
  height: 500px;
  background: var(--bg-app);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 80px rgba(76,125,255,0.07);
  display: flex;
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.app-window:hover {
  transform: rotateY(0) rotateX(0);
}

.app-sidebar {
  width: 160px;
  background: #0b0b0d;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.app-sidebar-item i {
  font-size: 0.85rem;
  width: 14px;
  text-align: center;
}

.app-sidebar-history {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar-hist-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

.app-sidebar-hist-item {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-header {
  height: 44px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(255,255,255,0.015);
  flex-shrink: 0;
}

.app-header .model-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
}

.app-header .model-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

.app-status-steps {
  display: flex;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.status-step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.status-step.done { color: var(--green); border-color: rgba(16,185,129,0.2); }
.status-step.active { color: var(--accent); border-color: rgba(76,125,255,0.3); background: rgba(76,125,255,0.05); }

.chat-history {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-avatar.ai {
  background: var(--accent);
  color: #fff;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--border);
}

.chat-msg.user .msg-bubble {
  background: #20202a;
  border-color: rgba(255,255,255,0.09);
}

.app-input-container {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  flex-shrink: 0;
}

.app-input {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-input .placeholder {
  color: var(--text-dim);
  font-size: 0.82rem;
  flex: 1;
}

.app-input .send-btn {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ─── WORKSPACE SECTION ─── */
.workspace-section {
  padding: 80px 0;
  background: var(--bg-app);
  border-top: 1px solid var(--border);
}

.workspace-detail {
  margin-top: 50px;
  width: 100%;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 620px;
  border: 1px solid var(--border-bright);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.ws-sidebar {
  background: #0c0c0e;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.ws-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.ws-history {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.ws-history-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px 6px;
}

.ws-history-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-history-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.ws-history-item .ts {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.ws-main {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.ws-tabs {
  display: flex;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ws-tab {
  padding: 13px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.ws-tab.active {
  background: var(--bg);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.ws-chat-area {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.ws-system-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.ws-system-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.ws-empty-state {
  text-align: center;
}

.ws-empty-state h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-family: var(--font-display);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ws-prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 580px;
}

.prompt-pill {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.ws-floating-input {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
}

.ws-input-box {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.ws-input-box textarea {
  width: 100%;
  min-height: 44px;
  max-height: 180px;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 4px 0;
}

.ws-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}

.ws-tool-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.ws-tool-btn {
  padding: 5px 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-tool-btn.active {
  border-color: var(--accent-glow);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ─── SYSTEM MODULES (BENTO) ─── */
.modules-section {
  padding: 80px 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.module-panel {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s;
}

.module-panel:hover {
  border-color: rgba(76,125,255,0.25);
}

.module-panel.full {
  grid-column: span 12;
}

.module-tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.module-h {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

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

.module-ui-snippet {
  background: var(--bg-app);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
}

/* ─── UI SCREENSHOTS (MODULES) ─── */
.module-screenshot {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

/* ─── PRODUCT FLOW ─── */
.flow-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(76,125,255,0.04) 0%, transparent 70%);
}

.flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  position: relative;
}

.flow-step {
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  z-index: 2;
  flex-shrink: 0;
}

.flow-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}

.flow-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  position: relative;
  margin: 0 -16px;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  height: 6px;
  width: 80px;
  background: var(--accent);
  border-radius: 4px;
  animation: flow-move 3s linear infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes flow-move {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ─── ANIMATIONS ─── */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

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

/* ─── SEO BLOCK ─── */
.seo-block {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.seo-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content > p {
    margin: 0 auto 28px;
  }

  .hero-actions {
    justify-content: center;
  }

  .app-preview-container {
    perspective: none;
  }

  .app-window {
    transform: none !important;
    height: 420px;
  }

  .workspace-detail {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ws-sidebar {
    display: none;
  }

  .module-panel {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding: 0 16px;
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    padding: 90px 0 60px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: -0.025em;
  }

  .hero-content > p {
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1;
    font-size: 0.88rem;
    padding: 11px 16px;
  }

  .app-window {
    height: 340px;
    transform: none !important;
  }

  .app-sidebar {
    display: none;
  }

  /* Workspace */
  .workspace-section { padding: 60px 0; }

  .ws-chat-area {
    padding: 24px 16px;
  }

  .ws-floating-input {
    margin-bottom: 20px;
  }

  .ws-tool-btns {
    gap: 5px;
  }

  .ws-tool-btn {
    font-size: 0.68rem;
    padding: 4px 9px;
  }

  /* Modules */
  .modules-section { padding: 60px 0; }
  .modules-grid { gap: 14px; margin-top: 40px; }
  .module-panel { grid-column: span 12; padding: 24px; }

  /* Flow */
  .flow-section { padding: 60px 0; }
  .flow-container {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .flow-step {
    width: 100%;
    max-width: 320px;
  }

  .flow-line {
    width: 2px;
    height: 40px;
    margin: 0;
    flex: none;
  }

  .flow-line::after {
    width: 2px;
    height: 20px;
    animation: flow-move-v 2.5s linear infinite;
  }

  /* Trust section */
  .trust-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  footer { padding: 48px 0 28px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@keyframes flow-move-v {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ─── MICRO ANIMATIONS ─── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fade-in-up 0.5s ease forwards;
}

/* ─── SCROLL‑REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
