/* ============================================================
   DomainSprout — Main Stylesheet
   Dark theme, bioluminescent green accent, organic-techy feel
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-base:        #0a0d0b;
  --bg-surface:     #0f1410;
  --bg-card:        #111a13;
  --bg-card-border: #1e3322;

  --green-bright:   #7fe87a;
  --green-mid:      #4cc94a;
  --green-dim:      #2a6b2a;
  --green-glow:     rgba(76, 201, 74, 0.18);
  --green-glow-lg:  rgba(76, 201, 74, 0.08);

  --text-primary:   #e8f0e9;
  --text-secondary: #8aab8d;
  --text-muted:     #4a6450;

  --orange-accent:  #e8722a;  /* from logo pot */

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Background Atmosphere --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(76, 201, 74, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(232, 114, 42, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
  z-index: 0;
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  padding: 32px 0 24px;
  text-align: center;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(76, 201, 74, 0.5));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-text span {
  color: var(--green-bright);
}

/* --- Divider line --- */
.header-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-dim), transparent);
  margin: 0;
  opacity: 0.6;
}

/* --- Hero Section --- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  border: 1px solid var(--green-dim);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 28px;
  background: rgba(76, 201, 74, 0.05);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-headline .highlight {
  color: var(--green-bright);
  position: relative;
}

.hero-headline .highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid), transparent);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- Value Props --- */
.value-props {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.prop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.prop-icon {
  width: 18px;
  height: 18px;
  color: var(--green-mid);
  flex-shrink: 0;
}

/* --- Signup Card --- */
.signup-section {
  padding: 0 0 80px;
}

.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(76, 201, 74, 0.06),
    0 4px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(76, 201, 74, 0.04);
}

/* Corner glow accent */
.signup-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(76, 201, 74, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
  text-align: center;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- EmailOctopus Form Wrapper --- */
/* These styles override / complement EmailOctopus default embed styles */
.form-embed-wrapper {
  width: 100%;
}

/* Style the EmailOctopus embed to match the dark theme.
   EmailOctopus embeds typically use class names like .emailoctopus-form,
   .emailoctopus-form-row, etc. These overrides ensure visual consistency. */
.form-embed-wrapper input[type="email"],
.form-embed-wrapper input[type="text"] {
  width: 100% !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--bg-card-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 14px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  outline: none !important;
  margin-bottom: 12px !important;
}

.form-embed-wrapper input[type="email"]:focus,
.form-embed-wrapper input[type="text"]:focus {
  border-color: var(--green-dim) !important;
  box-shadow: 0 0 0 3px rgba(76, 201, 74, 0.12) !important;
}

.form-embed-wrapper input[type="email"]::placeholder,
.form-embed-wrapper input[type="text"]::placeholder {
  color: var(--text-muted) !important;
}

.form-embed-wrapper input[type="submit"],
.form-embed-wrapper button[type="submit"] {
  width: 100% !important;
  background: var(--green-mid) !important;
  color: #071008 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 15px 24px !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition) !important;
  margin-top: 4px !important;
}

.form-embed-wrapper input[type="submit"]:hover,
.form-embed-wrapper button[type="submit"]:hover {
  background: var(--green-bright) !important;
  box-shadow: 0 0 24px rgba(76, 201, 74, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* EmailOctopus branding / footer text within embed */
.form-embed-wrapper p,
.form-embed-wrapper .emailoctopus-form-row-subscribe {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}

.form-embed-wrapper a {
  color: var(--text-muted) !important;
}

/* --- Privacy note --- */
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.privacy-note svg {
  flex-shrink: 0;
  color: var(--green-dim);
}

/* --- Features Strip --- */
.features {
  padding: 0 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-item:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Optional Banner Section (commented out by default) ---
   Uncomment the .banner-section block in the HTML to activate.
*/
.banner-section {
  padding: 0 0 60px;
}

.banner-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
  display: block;
  opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--bg-card-border);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(76, 201, 74, 0.4));
}

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

.footer-logo-text span { color: var(--green-mid); }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fadeUp 0.6s ease both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.35s; }
.anim-delay-4 { animation-delay: 0.5s; }
.anim-delay-5 { animation-delay: 0.65s; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .signup-card {
    padding: 32px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .value-props {
    gap: 16px;
  }

  .hero {
    padding: 48px 0 32px;
  }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1.3rem; }
  .hero-headline { font-size: 2rem; }
}
