/* maestrIA — dark navy + cyan tech theme */

/* ─── Variables ─── */
:root {
  --bg-deep: #050a14;
  --bg-primary: #080d1a;
  --bg-surface: #0d1526;
  --bg-card: #111a30;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text-primary: #e8f4f8;
  --text-secondary: rgba(232, 244, 248, 0.55);
  --text-muted: rgba(232, 244, 248, 0.28);
  --border: rgba(0, 212, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.3);
  --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Grid background texture ─── */
.maestria-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-status {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 10rem 5rem 6rem 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-bright);
  border-radius: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  width: fit-content;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-sub strong {
  color: var(--accent);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
}

.email-form {
  display: flex;
  gap: 0;
  position: relative;
}

.email-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0.9rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input:focus {
  border-color: var(--accent);
}

.email-form input::placeholder {
  color: var(--text-muted);
}

.email-form button {
  background: var(--accent);
  color: var(--bg-deep);
  border: 1px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.email-form button:hover {
  opacity: 0.88;
  box-shadow: 0 0 20px var(--accent-glow);
}

.email-form button:active {
  opacity: 0.75;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-note a {
  color: var(--accent);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

/* form success state */
.email-form.success input,
.email-form.success button {
  display: none;
}

.form-success-msg {
  display: none;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.email-form.success .form-success-msg {
  display: block;
}

/* ─── Hero Visual ─── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 4rem 6rem 2rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-bright), 0 20px 80px rgba(0, 212, 255, 0.1);
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    var(--bg-deep) 100%
  );
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
}

/* Ambient glow behind image */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  z-index: -1;
}

/* ─── Value Props ─── */
.value-props {
  padding: 6rem 8rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.value-card {
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  transition: background 0.2s;
}

.value-card:hover {
  background: var(--bg-card);
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.value-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Hook Section ─── */
.hook {
  padding: 8rem 8rem;
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.hook-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hook-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hook-quote em {
  color: var(--accent);
  font-style: normal;
}

.hook-context {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 50ch;
}

.hook-context p + p {
  margin-top: 1rem;
}

/* ─── CTA Banner ─── */
.cta-banner {
  padding: 6rem 8rem;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cta-headline span {
  color: var(--accent);
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-form-wrap {
  display: flex;
  justify-content: center;
}

.cta-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 440px;
}

.cta-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0.9rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input:focus {
  border-color: var(--accent);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form button {
  background: var(--accent);
  color: var(--bg-deep);
  border: 1px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cta-form button:hover {
  opacity: 0.88;
  box-shadow: 0 0 20px var(--accent-glow);
}

.cta-form.success input,
.cta-form.success button {
  display: none;
}

.cta-success {
  display: none;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-form.success .cta-success {
  display: flex;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-surface);
  padding: 3rem 8rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 8rem 3rem 4rem; }
  .hero-visual { padding: 2rem 3rem 5rem; justify-content: flex-start; }
  .hero-image-wrap img { max-width: 360px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .hook-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
  .hero-content { padding: 7rem 1.5rem 3rem; }
  .hero-visual { padding: 2rem 1.5rem 4rem; }
  .hero-headline { font-size: 2.2rem; }
  .value-props, .hook, .cta-banner { padding: 5rem 1.5rem; }
  .value-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .email-form, .cta-form { flex-direction: column; }
  .email-form input, .cta-form input {
    border-right: 1px solid var(--border-bright);
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  .email-form button, .cta-form button {
    border-radius: 4px;
    width: 100%;
  }
}

/* ─── Subtle entrance animation ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeUp 0.5s ease-out 0.1s both; }
.hero-headline { animation: fadeUp 0.5s ease-out 0.2s both; }
.hero-sub { animation: fadeUp 0.5s ease-out 0.3s both; }
.hero-cta { animation: fadeUp 0.5s ease-out 0.4s both; }
.hero-image-wrap { animation: fadeUp 0.6s ease-out 0.35s both; }