/* ==========================================================================
   Nine3One2 Design System & Styles
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 240, 255, 0.3);
  
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  
  --gradient-brand: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Background grid ambient effect */
.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.25));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45));
}

.brand-name {
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--border-highlight);
  color: #fff !important;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px 0;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 24px auto;
}

.hero-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #07090e;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  margin-bottom: 48px;
}

.about-logo-lockup {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 8px;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before {
  background: var(--gradient-brand);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tag.highlight {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.06);
}

/* Work / Showcase Section */
.work-section {
  padding: 90px 0;
}

.work-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.work-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.work-content-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 10px;
}

.work-item-title {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.work-item-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.work-meta {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.work-meta-label {
  color: var(--text-dim);
}

.work-meta-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* Capabilities Section */
.capabilities-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

/* SaaS Horizon Banner */
.horizon-banner {
  margin: 60px 0;
  background: linear-gradient(135deg, rgba(14, 18, 30, 0.8), rgba(28, 20, 50, 0.6));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.horizon-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.horizon-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.horizon-text p {
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* Contact / Inquiries Section */
.contact-section {
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg-primary);
  color: var(--text-dim);
  font-size: 0.875rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.brand-heading {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.about-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.3));
}

/* Legal Pages (Terms & Privacy) */
.legal-section {
  padding: 72px 0 96px 0;
}

.legal-card {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px;
}

.legal-card h2 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 32px 0 12px 0;
  letter-spacing: -0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p, .legal-card li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-card ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-card a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Responsive Styles */
@media (max-width: 860px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .horizon-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

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

@media (max-width: 640px) {
  .nav-wrapper {
    height: auto;
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.875rem;
  }

  .nav-cta {
    padding: 6px 12px;
  }
  
  .hero-section {
    padding: 60px 0 40px 0;
  }
  
  .card, .work-item, .contact-box {
    padding: 24px;
  }
}
