/*
  Agentech Link — Premium Design System & Stylesheet
  
  "import antigravity" — Gravity-defying architecture with zero-bloat, 
  high-performance layout styling. Built with CSS Grid, Flexbox, and modern CSS variables.
*/

/* --- Design Tokens --- */
:root {
  --bg-primary: #0a0f1d;       /* Deep Midnight Slate */
  --bg-secondary: #121829;     /* Sleek Charcoal */
  --bg-tertiary: #1e293b;      /* Slate Highlight */
  --accent-teal: #00f5d4;      /* Electric Teal */
  --accent-cyan: #00bbf9;      /* Cyber Cyan */
  --accent-glow: rgba(0, 245, 212, 0.15);
  
  --text-primary: #f8fafc;     /* Crisp Off-White */
  --text-secondary: #94a3b8;   /* Medium Slate Gray */
  --text-muted: #64748b;      /* Muted Gray */
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 245, 212, 0.3);
  --border-focus: rgba(0, 187, 249, 0.6);
  
  --success: #10b981;          /* Secure Emerald */
  --error: #f43f5e;            /* Cyber Rose/Red */
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(0, 245, 212, 0.25);
  --shadow-cyan-glow: 0 0 20px rgba(0, 187, 249, 0.25);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--accent-teal);
}
.btn-outline:hover {
  background: rgba(0, 245, 212, 0.1);
  box-shadow: var(--shadow-glow);
}

.btn-outline-teal {
  background: transparent;
  color: var(--accent-teal);
  border: 1.5px solid rgba(0, 245, 212, 0.3);
}
.btn-outline-teal:hover {
  background: rgba(0, 245, 212, 0.05);
  border-color: var(--accent-teal);
  box-shadow: var(--accent-glow) 0 0 10px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 245, 212, 0.08);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.15);
  margin-bottom: 1.25rem;
}

.badge-teal {
  background: rgba(0, 187, 249, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 187, 249, 0.15);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 40px;
  width: 180px;
}

.thesis-statement {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 992px) {
  .thesis-statement {
    display: inline;
  }
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 245, 212, 0.04), transparent 45%);
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.network-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.05));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* --- Section Formatting --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* --- Value Proposition & Problem Matrix --- */
.value-prop-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.matrix-card {
  background: rgba(10, 15, 29, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.matrix-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 15, 29, 0.6);
}

.problem-card:hover {
  border-color: rgba(244, 63, 94, 0.2);
}

.solution-card:hover {
  border-color: rgba(0, 245, 212, 0.2);
  box-shadow: 0 10px 40px -15px rgba(0, 245, 212, 0.08);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-red {
  color: var(--error);
}

.text-teal {
  color: var(--accent-teal);
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.1);
}

.matrix-list {
  list-style: none;
}

.matrix-list li {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.matrix-list li:last-child {
  margin-bottom: 0;
}

.list-icon {
  font-weight: 800;
  margin-right: 1rem;
  margin-top: 0.15rem;
}

.problem-card .list-icon {
  color: var(--error);
}

.solution-card .list-icon {
  color: var(--accent-teal);
}

.list-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.list-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Asynchronous Workflow Section --- */
.workflow-section {
  padding: 100px 0;
  background: radial-gradient(circle at 10% 80%, rgba(0, 187, 249, 0.03), transparent 40%);
}

.workflow-steps {
  position: relative;
}

.step-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Service Tiers / Packages --- */
.packages-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.packages-grid {
  align-items: stretch;
}

.package-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.package-card.featured {
  background: linear-gradient(180deg, #10192e 0%, var(--bg-primary) 100%);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-premium);
}

.package-card.featured:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow), var(--shadow-premium);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.3);
}

.package-header {
  margin-bottom: 1.5rem;
}

.package-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(to right, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.package-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  min-height: 54px;
}

.package-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.package-features li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.package-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

/* --- Lead Capture Intake Section --- */
.intake-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 187, 249, 0.05), transparent 45%);
}

.intake-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(18, 24, 41, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.intake-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-teal), transparent, var(--accent-cyan));
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.intake-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.intake-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.intake-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input, 
.form-group select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 187, 249, 0.15);
}

/* Custom select wrapper for style consistency */
.select-wrapper {
  position: relative;
  display: flex;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-secondary);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group select {
  appearance: none;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.error-message {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.4rem;
  min-height: 18px;
  transition: var(--transition-fast);
}

/* Submit loading indicator styles */
.btn-submit {
  position: relative;
  height: 48px;
  overflow: hidden;
}

.btn-submit.loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 15, 29, 0.2);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Success Alert Container --- */
.success-alert {
  text-align: center;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.success-heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.success-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

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

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

.footer-sec-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.06);
  color: var(--success);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
}

.footer-contact-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--accent-teal);
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.3);
}

.success-contact-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.contact-email-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact-email-link:hover {
  color: var(--accent-teal);
  text-decoration: underline;
}
