/* Three Nine Ventures — Modern SaaS Marketing */

:root {
  --color-bg: #fafafa;
  --color-bg-elevated: #ffffff;
  --color-text: #0a0a0a;
  --color-text-muted: #6b6b6b;
  --color-text-subtle: #a1a1a1;
  --color-accent: #0f766e;
  --color-accent-hover: #0d5c63;
  --color-accent-muted: rgba(15, 118, 110, 0.08);
  --color-border: #e5e5e5;
  --color-border-subtle: #f0f0f0;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: #2d1b4e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-cta:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('images/threenine-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(15, 118, 110, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(15, 118, 110, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(15, 118, 110, 0.05) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-subtitle {
  margin: 0 0 36px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #fff;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-subtle);
  background: var(--color-bg-elevated);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Section headers */
.section-header {
  margin-bottom: 48px;
  max-width: 560px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Products */
.products {
  padding: 100px 0 120px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.product-card-featured {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.02) 0%, transparent 50%);
}

.product-card-featured:hover {
  border-color: rgba(15, 118, 110, 0.3);
}

.product-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 16px !important;
}

.product-card p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.product-card p:last-of-type {
  margin-bottom: 0;
}

.product-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.product-link:hover {
  color: var(--color-accent);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.product-cta:hover {
  color: var(--color-accent-hover);
  transform: translateX(2px);
}

/* About */
.about {
  padding: 0 0 120px;
}

.about-inner {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 64px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .about-inner {
    padding: 40px 24px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-block h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.about-block p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Contact CTA */
.contact-cta {
  padding: 0 0 120px;
}

.cta-box {
  background: #2d1b4e;
  color: white;
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 48px 24px;
  }
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0 0 24px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-box .btn-primary {
  background: white;
  color: var(--color-text);
}

.cta-box .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

/* Nav scroll effect */
@media (prefers-reduced-motion: no-preference) {
  .nav {
    transition: border-color var(--transition), background var(--transition);
  }
}
