/* =========================================================
   Nisarg Agro Tech — Coming Soon
   Built for APHELIOX GRID PRAXIS INDIA (apexgp.co.in)
   ========================================================= */

:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --ink: #122119;
  --ink-muted: #4b5d53;
  --accent: #2a6f4e;
  --accent-dark: #1f543b;
  --accent-soft: rgba(42, 111, 78, 0.1);
  --border: rgba(18, 33, 25, 0.14);
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle architectural grid background */
.grid-backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(18, 33, 25, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 33, 25, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background-color: rgba(245, 246, 242, 0.82);
  backdrop-filter: blur(4px);
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(42, 111, 78, 0.25);
  padding: 0.35rem 0.75rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 2s infinite ease-in-out;
}

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

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Main Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.headline {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

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

.subcopy {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

/* Notify Form */
.notify-form {
  max-width: 480px;
}

.input-group {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}

.input-group input::placeholder {
  color: #7c8c83;
}

.input-group button {
  border: none;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.input-group button:hover {
  background: var(--accent);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 1.25rem;
  margin-top: 0.65rem;
  color: var(--accent-dark);
}

.form-feedback.error {
  color: #a63429;
}

/* Right Telemetry Card */
.hero-right {
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.spec-val {
  font-weight: 500;
  text-align: right;
}

.inline-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--ink);
}

.progress-block {
  margin-top: 1.5rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e6eae3;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3-Column Info Strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.info-cell {
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.info-cell:last-child {
  border-right: none;
}

.cell-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.info-cell h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-cell p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-credit a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-credit .mono-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.divider {
  margin: 0 0.4rem;
  opacity: 0.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.75rem;
  }

  .hero-right {
    padding: 2rem 1.75rem;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .info-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-cell:last-child {
    border-bottom: none;
  }
}

@media (max-width: 540px) {
  .top-bar,
  .site-footer {
    padding: 1rem 1.25rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
  }
}
