/* Flownamatic website – dark theme to match the app (Bots, Dashboard, Integrations) */

:root {
  --teal: rgba(44, 122, 123, 0.9);
  --teal-light: rgba(44, 122, 123, 0.5);
  --green: rgba(56, 161, 105, 0.9);
  --green-glow: rgba(56, 161, 105, 0.35);
  --gradient: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  --bg-dark: linear-gradient(160deg, #0d1929 0%, #0b2229 40%, #0c261f 100%);
  --bg-page:
    radial-gradient(900px 500px at 15% 15%, rgba(44, 82, 130, 0.25) 0%, rgba(44, 82, 130, 0) 55%),
    radial-gradient(800px 450px at 88% 20%, rgba(44, 122, 123, 0.2) 0%, rgba(44, 122, 123, 0) 55%),
    radial-gradient(700px 400px at 70% 85%, rgba(56, 161, 105, 0.15) 0%, rgba(56, 161, 105, 0) 55%),
    var(--bg-dark);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.7);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header – dark glass */
.header {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  height: 36px;
  width: 36px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(44, 122, 123, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--green-glow);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background: transparent;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 320px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-icon { width: 140px; }
}

/* Section common */
.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.section-lead {
  margin: 0 0 48px;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Features – glass cards */
.features {
  background: transparent;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* How it works */
.how-it-works {
  background: transparent;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(44, 122, 123, 0.35);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA – glass panel */
.cta {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 64px 24px;
  margin: 0 24px;
  box-shadow: var(--shadow);
}

.cta-inner {
  text-align: center;
}

.cta-icon {
  width: 80px;
  height: auto;
  opacity: 0.9;
  margin-bottom: 20px;
}

.cta h2 {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 700;
}

.cta .btn-primary {
  background: var(--gradient);
  color: #fff;
}

.cta .btn-primary:hover {
  box-shadow: 0 8px 28px var(--green-glow);
}

/* Footer – dark glass */
.footer {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 40px 24px;
  margin-top: 48px;
}

.footer-inner {
  text-align: center;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  opacity: 0.95;
  margin-bottom: 6px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  margin: 0 0 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-links {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--text);
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.6;
}

/* Legal pages (Privacy, Terms) */
.legal-main {
  padding: 48px 0 72px;
  background: transparent;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.legal-updated {
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-main section {
  margin-bottom: 28px;
}

.legal-main section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.legal-main section p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-main section p:last-child {
  margin-bottom: 0;
}

.legal-main a {
  color: var(--teal);
  text-decoration: none;
}

.legal-main a:hover {
  text-decoration: underline;
  color: var(--green);
}
