/* ============================================================
   THE DIGITAL OAK — main.css
   Dark theme | Cormorant + Space Grotesk | Lime #b6d44c
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0c0c0c;
  --surface:   #141414;
  --border:    #222222;
  --accent:    #b6d44c;
  --accent-dim:#8aa835;
  --text:      #f0f0ec;
  --muted:     #888880;
  --faint:     #333330;

  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Space Grotesk', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ───────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* ── Left Panel ───────────────────────────────── */
.panel-left {
  position: relative;
  width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3.5rem;
  background: var(--bg);
  overflow: hidden;
  z-index: 1;
}

/* Circuit trace background decoration */
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 40%, transparent 100%);
}

/* Animated circuit energy pulse line */
.panel-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 40%,
    var(--accent-dim) 55%,
    transparent 100%
  );
  opacity: 0.6;
  animation: energyPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes energyPulse {
  0%, 100% { transform: translateY(-100%); opacity: 0; }
  30%       { opacity: 0.7; }
  60%       { opacity: 0.4; }
  80%       { transform: translateY(100%); opacity: 0; }
}

.panel-left > * {
  position: relative;
  z-index: 1;
}

/* ── Right Panel ──────────────────────────────── */
.panel-right {
  width: 50%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.panel-right img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle left-edge fade to blend panels */
.panel-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to right, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ── Nav / Logo ───────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: auto;
  padding-bottom: 1rem;
}

.site-nav .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav .wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ── Main Content ─────────────────────────────── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 3rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.description {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 3rem;
}

/* ── Email Capture ────────────────────────────── */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.notify-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.notify-row {
  display: flex;
  gap: 0;
}

.notify-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.notify-input::placeholder {
  color: var(--faint);
}

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

.notify-btn {
  background: var(--accent);
  color: #0c0c0c;
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.notify-btn:hover {
  background: #cae85e;
}

.notify-btn:active {
  transform: scale(0.98);
}

/* ── Circuit Node Decoration ──────────────────── */
.circuit-nodes {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
}

.node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: nodePulse 3s ease-in-out infinite;
}

.node:nth-child(2) { animation-delay: 0.5s; opacity: 0.3; }
.node:nth-child(3) { animation-delay: 1s;   opacity: 0.2; }

.node-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.25;
}

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

/* ── Footer ───────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: auto;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
  }

  .panel-left {
    width: 100%;
    min-height: auto;
    padding: 2rem;
  }

  .panel-right {
    width: 100%;
    height: 50vh;
    min-height: 320px;
  }

  .panel-right::before {
    width: 100%;
    height: 80px;
    top: 0; left: 0;
    background: linear-gradient(to bottom, var(--bg), transparent);
  }

  .headline {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}

@media (max-width: 480px) {
  .panel-left {
    padding: 1.5rem;
  }

  .notify-row {
    flex-direction: column;
  }

  .notify-input {
    border-right: 1px solid var(--border);
  }

  .notify-btn {
    text-align: center;
  }
}