/* =============================================
   AgentSystems Website Styles

   Official brand colors and design system
   matching the AgentSystems UI application
   ============================================= */

:root{
  /* Official AgentSystems Brand Colors */
  --bg-dark:#0a0d11;      /* deep space black - hero/nav */
  --surface-dark:#12161b; /* dark surface */
  --surface-2-dark:#1a1f26; /* elevated surface */
  --border-dark:#1e242b;  /* subtle border */

  /* Brand Accents */
  --brand:#00b6a0;        /* signature teal */
  --brand-2:#47a1d9;      /* bright blue */
  --gradient: linear-gradient(135deg, #00b6a0 0%, #47a1d9 100%);

  /* Light theme surfaces */
  --surface:#ffffff;      /* page background */
  --surface-2:#f8fafc;    /* alt section background */
  --surface-3:#f1f5f9;    /* cards */

  /* Text colors */
  --text-dark:#e8ecf1;    /* light text on dark */
  --text-light:#0f172a;   /* dark text on light */
  --text-secondary:#475569; /* secondary text */
  --text-muted:#64748b;   /* muted text */

  /* Borders and lines */
  --line:#e2e8f0;         /* light divider */
  --line-dark:#2a313a;    /* dark divider */

  /* Status colors */
  --success:#10b981;
  --warning:#f59e0b;
  --error:#ef4444;
  --info:#06b6d4;

  --maxw:1200px;

  /* Typography - matching UI */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  --h1: clamp(36px, 5vw, 48px);
  --h2: clamp(28px, 4vw, 36px);
  --h3: clamp(20px, 3vw, 24px);
  --body: 16px;
  --small: 14px;

  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-soft: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-dark: 0 10px 30px rgba(0,0,0,0.4);
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:20px; /* Small offset for better anchor positioning */
  overflow-x:hidden;
}
/* No offset for #top anchor */
body:target {
  scroll-margin-top: 0;
}


/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Phosphor Icons */
.ph {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  font-size: 1.32em;  /* was 1.1em, now 20% larger */
}

.btn .ph {
  margin-right: 4px;
}

.link-brand .ph,
.card a .ph {
  margin-left: 4px;
  margin-right: 0;
  font-size: 1.08em;  /* was 0.9em, now 20% larger */
}

.feature-icon .ph {
  font-size: 1.2em;  /* reduced from 1.68em */
  margin: 0;
  color: white;
}

.card h3 .ph,
.feature h3 .ph {
  color: var(--brand);
  margin-right: 6px;
  font-size: 1.32em;  /* was 1.1em, now 20% larger */
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-highlight h3 .ph {
  color: var(--brand-2);
}

.timeline h4 .ph,
.step h4 .ph {
  color: var(--brand);
  margin-right: 4px;
  font-size: 1.2em;  /* was 1em, now 20% larger */
}
body{
  margin:0;
  font-family: var(--font-sans);
  color:var(--text-light);
  background:var(--surface);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
.nav{
  position:sticky; top:0; z-index:50;
  background:var(--bg-dark);
  color:var(--text-dark);
  border-bottom:1px solid var(--border-dark);
  backdrop-filter: blur(10px);
  background: rgba(10,13,17,0.95);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; gap:18px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff;}
.brand .logo{
  height:36px;
  width:auto;
  display:inline-block;
  object-fit: contain;
  vertical-align: middle;
}
.brand span{font-weight:700; letter-spacing:.2px;}
.nav-fill{flex:1}
.nav a.link{
  color:rgba(232,236,241,0.8); text-decoration:none; font-weight:500; font-size:15px; padding:8px 12px; border-radius:8px;
  transition: all 0.2s ease;
}
.nav a.link:hover{color:var(--text-dark); background:rgba(255,255,255,.08)}
.nav a.link.active{color:var(--text-dark); background:rgba(255,255,255,.08)}
.btn{
  appearance:none; border:0; border-radius:12px; padding:11px 18px; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; text-decoration:none; white-space:nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size:15px;
}
.btn-primary{background:var(--gradient); color:var(--bg-dark); font-weight:600;}
.btn-primary:hover{opacity:0.9; box-shadow:0 2px 8px rgba(0,0,0,0.08);}
.btn-ghost{background:transparent; color:var(--text-light); border:1px solid var(--line)}
.btn-ghost:hover{background:var(--surface-2); border-color:var(--brand)}

/* Ghost buttons on dark backgrounds */
.hero .btn-ghost, .nav .btn-ghost{color:var(--text-dark); border:1px solid rgba(255,255,255,.15)}
.hero .btn-ghost:hover, .nav .btn-ghost:hover{background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.25)}

/* Hero */
.hero{
  background:
    radial-gradient(circle at 20% 50%, rgba(0,182,160,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(71,161,217,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
    var(--bg-dark);
  color:var(--text-dark);
  padding:80px 20px 64px;
  border-bottom:1px solid var(--border-dark);
  position:relative;
  overflow:hidden;
}

/* Shimmer animation removed - was causing horizontal scroll on mobile due to 300% width */
.hero-inner{max-width:var(--maxw); margin:0 auto; display:flex; flex-direction:column; gap:26px; position:relative; z-index:1}
.h1{font-size:var(--h1); line-height:1.1; margin:0; color:var(--text-dark); font-weight:800; letter-spacing:-1px}
.sub{font-size:19px; color:rgba(232,236,241,0.85); max-width:920px; line-height:1.65; font-weight:400;}

/* Hero CTA Row - Container for badge and buttons */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* License Badge */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: linear-gradient(135deg, rgba(0, 182, 160, 0.1), rgba(71, 161, 217, 0.1));
  border: 1px solid rgba(0, 182, 160, 0.3);
  border-radius: 50px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(0, 182, 160, 0.15);
  width: fit-content;
  height: fit-content;
}

.license-badge .ph-scales {
  color: #00b6a0;
  font-size: 1.32em;
  margin-right: 6px;
}

.license-badge .divider {
  opacity: 0.5;
}

.license-badge .license-type {
  background: linear-gradient(135deg, #00b6a0 0%, #47a1d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.hero-cta{display:flex; flex-wrap:wrap; gap:12px}
.tiny{font-size:var(--small); color:rgba(148,163,184,0.8)}

pre.code{
  margin:16px 0 0; padding:20px 24px; background:var(--surface-dark); color:var(--text-dark);
  border:1px solid var(--border-dark); border-radius:var(--radius); font-size:14px; line-height:1.6; overflow:auto;
  font-family:var(--font-mono); box-shadow:var(--shadow-dark);
}

/* Sections */
section{padding:72px 20px; overflow-x:hidden;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 20px;}

/* Techie section headings */
h2{
  font-size:var(--h2);
  line-height:1.2;
  margin:0 0 24px;
  color:var(--text-light);
  font-weight:700;
  letter-spacing:-0.8px;
  position:relative;
  display:inline-block;
}
/* Add accent line under h2 */
h2::after {
  content:'';
  position:absolute;
  bottom:-8px;
  left:0;
  width:60px;
  height:3px;
  background:var(--gradient);
  border-radius:2px;
}

p.lead{font-size:18px; color:var(--text-secondary); margin:0 0 40px; line-height:1.7; font-weight:400;}

.pill{
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--brand);
  background:rgba(0,182,160,0.08);
  backdrop-filter: blur(8px);
  border:1px solid rgba(0,182,160,0.15);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-family:var(--font-mono);
  width:fit-content;
  transition: all 0.2s ease;
}
.pill:hover{
  background:rgba(0,182,160,0.12);
  border-color:rgba(0,182,160,0.25);
}

/* Grids */
.grid{display:grid; gap:16px}
.cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin:48px 0}
@media (max-width:1000px){
  .cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .feature-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .cards-4,.cards-2{grid-template-columns:1fr}
  .feature-grid{grid-template-columns:1fr; gap:24px}
}

.card{
  background:rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(226, 232, 240, 0.5);
  border-radius:var(--radius);
  box-shadow:0 4px 6px rgba(0,0,0,0.04);
  padding:20px;
  min-height:120px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
}
/* Techie hover effect */
.card::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:2px;
  background:var(--gradient);
  transform:translateX(-100%);
  transition:transform 0.3s ease;
}
.card:hover::before {
  transform:translateX(0);
}
.card:hover{
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  transform:translateY(-4px) scale(1.02);
  background:rgba(255, 255, 255, 0.95);
  border-color:rgba(0,182,160,0.2);
}
/* No hover effects for cards with CTAs */
.card.text-center:hover{
  transform:none;
  box-shadow:0 4px 6px rgba(0,0,0,0.04);
}
.card h3{
  font-size:19px;
  margin:0 0 10px;
  color:var(--text-light);
  font-weight:600;
  letter-spacing:-0.3px;
}
.card p{margin:0; color:var(--text-secondary); font-size:15px; line-height:1.5}
.card-highlight{
  border:2px solid var(--brand);
  background:linear-gradient(135deg, rgba(0,182,160,0.05) 0%, transparent 100%);
}

.alt{background:var(--surface-2)}

/* Timeline */
.timeline{position:relative; margin-top:10px}
.step{display:block; padding:22px 0; border-top:1px dashed var(--line)}
.step:first-child{border-top:0}
.step h4{font-size:18px; margin:0 0 6px; color:var(--text-light); font-weight:600}
.muted{color:var(--text-muted)}

/* CTA row */
.row-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:32px}

/* Features */
.feature{display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px}
/* Modern feature icons */
.feature-icon{
  width:64px;
  height:64px;
  background:var(--gradient);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:28px;
  flex-shrink:0;
  box-shadow:0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature:hover .feature-icon{
  transform: rotate(-5deg) scale(1.1);
  box-shadow:0 6px 12px rgba(0,0,0,0.12);
}
.feature h3{font-size:20px; margin:0 0 8px; color:var(--text-light)}
.feature p{margin:0; color:var(--text-secondary); line-height:1.6}

/* Badge */
.badge{display:inline-block; padding:4px 8px; background:var(--brand); color:#fff; border-radius:6px; font-size:12px; font-weight:700; margin-left:8px}

/* Code inline */
/* Techie inline code styling */
code{
  background:rgba(0,182,160,0.1);
  padding:4px 8px;
  border-radius:4px;
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--brand);
  border:1px solid rgba(0,182,160,0.2);
  font-weight:500;
}

/* Stats */
.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:32px 0; text-align:center}
/* Futuristic stat styling like the UI */
.stat h3{
  font-size:48px;
  margin:0;
  font-weight:700;
  font-family:var(--font-mono);
  background:var(--gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  letter-spacing:-1px;
  position:relative;
  display:inline-block;
}
/* Add subtle glow effect */
.stat h3::before {
  display: none;
}
.stat p{
  margin:8px 0 0;
  color:var(--text-muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:600;
  font-family:var(--font-mono);
}
@media (max-width:640px){.stats{grid-template-columns:1fr}}

/* Responsive Navigation */
@media (max-width:768px) {
  .nav-inner{gap:12px; padding:12px 16px; justify-content:space-between;}
  .nav a.link{display:none;}
  .nav-fill{display:none;}
  .nav .btn{font-size:13px; padding:8px 12px;}
  .nav .btn-ghost{display:inline-flex;}
  .nav .btn-ghost span{display:none;}
  .brand span{font-size:16px;}
}

/* Responsive Hero */
@media (max-width:768px) {
  .hero{padding:60px 20px 48px;}
  .hero-inner h1{font-size:32px; line-height:1.2;}
  .hero-inner .sub{font-size:16px;}
  .hero-cta-row{flex-direction:column; align-items:stretch; gap:16px; width:100%;}
  .license-badge{width:100%; justify-content:center; padding:10px 16px; font-size:13px;}
  .hero-cta{flex-direction:column; width:100%;}
  .hero-cta .btn{width:100%; justify-content:center;}
}

/* Small mobile screens */
@media (max-width:480px) {
  .hero-inner h1{font-size:28px;}
  .hero-inner .sub{font-size:15px;}
  .wrap{padding:0 16px;}
  h2{font-size:24px;}
  .row-cta{flex-direction:column; width:100%;}
  .row-cta .btn{width:100%; justify-content:center;}
  .pill{font-size:11px; padding:4px 10px;}
  .license-badge{font-size:12px; padding:8px 12px; gap:6px;}
  .license-badge .divider{display:none;}
  .brand .logo{height:28px;}
}

/* Very small screens (iPhone SE, etc) */
@media (max-width:375px) {
  .brand .logo{height:24px;}
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.hero-inner > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}
.hero-inner > :nth-child(1) { animation-delay: 0.1s; }
.hero-inner > :nth-child(2) { animation-delay: 0.2s; }
.hero-inner > :nth-child(3) { animation-delay: 0.3s; }
.hero-inner > :nth-child(4) { animation-delay: 0.4s; }

/* Footer */
footer{padding:28px 20px; color:#55737f; border-top:1px solid var(--line)}
.footer-icon{
  width:80px;
  height:80px;
  display:block;
  margin:0 auto 20px;
  opacity:1;
}

/* Contact Page */
.contact-hero {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 60px 20px 40px;
  border-bottom: 1px solid var(--border-dark);
}
.contact-hero h1 {
  font-size: var(--h1);
  margin: 0 0 12px;
  font-weight: 700;
}
.contact-hero .subtitle {
  font-size: 18px;
  color: rgba(232,236,241,0.8);
  max-width: 600px;
  margin: 0 auto;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}
.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 15px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-sans);
  background: white;
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,182,160,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group select {
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-row .form-group {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-submit .btn {
  min-width: 140px;
  justify-content: center;
}
.form-note {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
}
.quick-links {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
  text-align: center;
}
.quick-links h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-light);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}
.quick-link {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.quick-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.quick-link i {
  color: var(--brand);
}
.alert-info {
  background: rgba(0,182,160,0.1);
  border: 1px solid rgba(0,182,160,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  color: var(--text-light);
  font-size: 14px;
  display: none;
}
.alert-info.show {
  display: block;
}

/* Utility Classes */
.link-white{color:#fff; text-decoration:none}
.link-white:hover{opacity:0.9}
.link-brand{color:var(--brand); text-decoration:none; font-weight:600; display:inline-flex; align-items:center; gap:4px}
.link-brand:hover{opacity:0.9}
.link-muted{color:var(--text-muted); text-decoration:none}
.link-muted:hover{color:var(--text-secondary)}
.code-comment{color:var(--brand)}
.mt-32{margin-top:32px}
.mb-12{margin:0 0 12px}
.mb-16{margin:0 0 16px}
.mb-32{margin-bottom:32px}
.p-32{padding:32px}
.text-center{text-align:center}
.text-center.card h3{display:block; text-align:center}
.justify-center{justify-content:center}
.text-brand{color:var(--brand)}
.text-muted{color:var(--text-muted)}
.h3{font-size:var(--h3)}
.feature-list{margin:8px 0; padding-left:20px}
.spaced-list{line-height:1.8}

/* Icon styling for Ionicons */
ion-icon{font-size:16px; vertical-align:text-bottom; margin-right:6px}
.btn ion-icon{font-size:18px; margin-right:8px}
.link-brand ion-icon{margin-right:0; margin-left:6px; font-size:14px; vertical-align:middle}
.card h3{display:flex; align-items:center}
.card h3 ion-icon{margin-right:8px; flex-shrink:0; font-size:20px}