/* ========================================
   Infinity OS Connect — Gateway Site Styles
   Product Landing & Access Portal
   ======================================== */

:root {
  --primary: #1a5490;
  --primary-dark: #0d3d6b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --success: #10b981;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --section-spacing: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-dark {
  background: var(--slate-900);
  color: var(--slate-300);
}

.section-light {
  background: var(--slate-50);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.navbar-brand code {
  background: var(--slate-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-nav a {
  font-weight: 500;
  color: var(--slate-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: var(--white);
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--slate-100);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--white);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.feature h3 {
  margin-bottom: 1rem;
}

.feature p {
  color: var(--slate-600);
}

/* Code Block Styling */
.code-sample {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow-xl);
}

.code-sample pre {
  margin: 0;
  line-height: 1.7;
}

/* Proof Section */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.proof-item {
  text-align: center;
}

.proof-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.proof-label {
  font-size: 1rem;
  color: var(--slate-600);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--slate-100);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer a {
  color: var(--slate-400);
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  text-align: center;
  font-size: 0.875rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--slate-500); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
}
