/* ========================= ROOT VARIABLES ========================= */
/* Centralised theme values for easy future updates */
:root {
  --bg-main: #0d0d0d;          /* Page background */
  --bg-panel: #111111;         /* Card/panel background */
  --bg-input: #1a1a1a;         /* Input fields */
  --text-main: #ffffff;        /* Main text */
  --text-muted: #888888;       /* Secondary text */
  --accent: #00e5ff;           /* Neon cyan accent */
  --accent-soft: rgba(0, 229, 255, 0.4);
  --accent-glow: rgba(0, 229, 255, 0.6);
  --border-soft: #222222;      /* Subtle borders */
  --radius: 10px;              /* Rounded corners */
  --transition-fast: 0.15s ease-out;
  --transition-slow: 4s ease-in-out; /* Breathing animation */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset + base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================= HEADER ========================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-soft);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 32px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

/* ========================= BUTTONS ========================= */

.btn {
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--accent-soft);
}

.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* ========================= HERO SECTION ========================= */

.hero {
  position: relative;
  padding: 80px 32px 60px;
  overflow: hidden;
}

/* Breathing glow background */
.hero-glow {
  position: absolute;
  top: -80px;
  left: -40px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.35;
  filter: blur(12px);
  animation: heroBreathingGlow var(--transition-slow) infinite alternate;
}

/* Glow animation */
@keyframes heroBreathingGlow {
  0% { transform: scale(1); opacity: 0.28; }
  100% { transform: scale(1.08); opacity: 0.45; }
}

/* ========================= FEATURES ========================= */

.features {
  border-top: 1px solid var(--border-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature-card {
  background-color: var(--bg-panel);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-soft);
  position: relative;
}

/* Glow on hover */
.feature-card:hover::before {
  opacity: 1;
}

/* ========================= DEMO SECTION ========================= */

.demo {
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
}

.order-form {
  background-color: var(--bg-panel);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-row input,
.form-row select {
  background-color: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
  color: var(--text-main);
}

/* ========================= RESPONSE PANEL ========================= */

.response-panel {
  background-color: #050505;
  padding: 12px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

/* ========================= FOOTER ========================= */

.footer {
  margin-top: auto;
  padding: 18px 32px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
}