/* ==========================================================================
   TREGONE GROUP - LUXURY CORPORATE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(228, 0, 22, 0.4);
  --border-glow: rgba(228, 0, 22, 0.2);

  /* Brand Accents */
  --tregone-red: #e40016;
  --tregone-red-hover: #ff1a2e;
  --tregone-red-subtle: rgba(228, 0, 22, 0.12);
  --accent-cyan: #00d2ff;
  --accent-cyan-subtle: rgba(0, 210, 255, 0.12);
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  /* Typography Specs */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-main);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glow-red: 0 0 40px rgba(228, 0, 22, 0.25);
  --glow-cyan: 0 0 40px rgba(0, 210, 255, 0.2);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
}

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

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

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Atmosphere Gradients */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(228, 0, 22, 0.35) 0%, rgba(228, 0, 22, 0) 70%);
  top: -150px;
  right: -100px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, rgba(0, 210, 255, 0) 70%);
  top: 40%;
  left: -150px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
  bottom: -200px;
  right: 15%;
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 70px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-40px, -50px) scale(1.15); }
  100% { transform: translate(50px, -20px) scale(1); }
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-red {
  background: linear-gradient(135deg, #ff4d5e 0%, #e40016 60%, #b80012 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tregone-red);
  box-shadow: 0 0 10px var(--tregone-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 0, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(228, 0, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 0, 22, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  user-select: none;
}

.btn-primary {
  background: var(--tregone-red);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(228, 0, 22, 0.35);
}

.btn-primary:hover {
  background: var(--tregone-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(228, 0, 22, 0.5);
}

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

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

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background-color var(--transition-base), border-color var(--transition-base), padding var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-subtle);
  padding: 12px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo SVG styling */
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.brand-svg {
  height: 42px;
  width: auto;
  max-width: 280px;
  display: block;
  transition: transform var(--transition-base);
}

.brand-link:hover .brand-svg {
  transform: scale(1.02);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tregone-red);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  margin: 24px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 40px;
}

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

/* Stats Counter Grid */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-top: 16px;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   ECOSYSTEM / VENTURES
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-flagship {
  border-color: rgba(228, 0, 22, 0.35);
  background: linear-gradient(145deg, rgba(22, 28, 44, 0.8) 0%, rgba(14, 18, 29, 0.9) 100%);
}

.card-flagship::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(228, 0, 22, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.card-badge {
  align-self: flex-start;
  margin-bottom: 24px;
}

.venture-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.venture-icon.red {
  background: var(--tregone-red-subtle);
  border-color: rgba(228, 0, 22, 0.3);
  color: var(--tregone-red);
}

.venture-icon.cyan {
  background: var(--accent-cyan-subtle);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
}

.venture-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

.venture-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.venture-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  list-style: none;
}

.feature-pill {
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.venture-footer {
  margin-top: auto;
}

/* Secondary cards column */
.secondary-ventures {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   TECHNOLOGY PILLARS
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(14px);
  transition: all var(--transition-base);
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.tech-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   VALUES & GOVERNANCE
   ========================================================================== */
.values-banner {
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.9) 0%, rgba(13, 18, 29, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.value-item h4 {
  font-size: 1.1875rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   CONTACT & INVESTOR RELATIONS
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 56px 48px;
  backdrop-filter: blur(20px);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tregone-red);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-top: 2px;
  text-decoration: none;
}

.detail-val:hover {
  color: var(--tregone-red);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--tregone-red);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(228, 0, 22, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toast Message */
.toast-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  background: rgba(5, 7, 10, 0.95);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section {
    padding: 60px 0 40px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .values-banner {
    padding: 40px 24px;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links-group {
    gap: 32px;
    width: 100%;
    justify-content: space-between;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 32px 24px;
}

.mobile-drawer.open {
  display: flex;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-links a {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
