/* ============================================================
   TELOS CFO & ADVISORY — Design System
   Inspired by telos-csuite.com: dark immersive, outlined text
   ============================================================ */

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

:root {
  --green: #62BB46;
  --green-dark: #4a9e33;
  --green-light: #e8f5e3;
  --green-glow: rgba(98, 187, 70, 0.15);
  --dark: #202124;
  --dark-soft: #2d2f33;
  --gray-900: #1a1a1a;
  --gray-800: #333;
  --gray-700: #555;
  --gray-500: #888;
  --gray-400: #aaa;
  --gray-300: #ccc;
  --gray-200: #e5e5e5;
  --gray-100: #f2f2f2;
  --gray-50: #f9f9f9;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.08);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.06), 0 32px 64px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Outlined / Stroke Text --- */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
  text-stroke: 1.5px var(--green);
}
.text-outline-lg {
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  text-stroke: 2px var(--green);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(32, 33, 36, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s var(--ease);
}
.nav.scrolled .nav-inner { height: 64px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-svg { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--white); }
.nav.scrolled .nav-link { color: rgba(255,255,255,0.6); }
.nav.scrolled .nav-link:hover { color: var(--white); }
.nav-link-cta {
  color: var(--green) !important;
  font-weight: 700;
}
.nav-link-cta:hover { color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-dark {
  position: relative;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 24px 140px;
  min-height: 100vh;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(98,187,70,0.06) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero-question {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  text-stroke: 2px var(--green);
  margin-bottom: 24px;
}
.hero-answer {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--green);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s, gap 0.3s;
}
.hero-cta:hover {
  color: var(--green);
  gap: 18px;
}
.hero-cta-arrow {
  font-size: 20px;
  transition: transform 0.3s;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(4px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(98,187,70,0.3);
}
.btn-lg { padding: 18px 40px; font-size: 16px; }

/* --- Sections --- */
.section { padding: 120px 0; }
.section-header { margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 700;
}

/* --- About --- */
.section-about { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text { padding-top: 8px; }
.about-lead {
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 500;
}
.about-text p { color: rgba(255,255,255,0.55); line-height: 1.8; }
.about-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bento-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.35s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(98,187,70,0.2);
}
.bento-card-highlight {
  background: rgba(98,187,70,0.08);
  border-color: rgba(98,187,70,0.15);
}
.bento-card-highlight .bento-icon { color: var(--green); }
.bento-card-highlight p { color: rgba(255,255,255,0.6); }
.bento-icon { margin-bottom: 16px; color: var(--green); }
.bento-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.bento-card p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* --- Services --- */
.section-services {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.services-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 72px;
  text-align: center;
}
.services-headline .text-outline {
  -webkit-text-stroke: 1.5px var(--green);
  text-stroke: 1.5px var(--green);
}
.services-headline .text-solid {
  color: var(--white);
}
.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.service-column {
  padding: 0;
}
.service-column-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.service-column-header h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.service-list { display: flex; flex-direction: column; gap: 16px; }
.service-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--green);
}

/* --- Triggers / When to Engage --- */
.section-triggers {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.triggers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trigger-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.trigger-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(98,187,70,0.2);
}
.trigger-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.trigger-card:hover .trigger-card-accent { opacity: 1; }
.trigger-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.trigger-card ul { display: flex; flex-direction: column; gap: 12px; }
.trigger-card li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding-left: 16px;
  position: relative;
}
.trigger-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* --- Approach / Timeline --- */
.section-approach { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); }
.section-approach .section-title { color: var(--white); }
.approach-timeline {
  max-width: 680px;
  margin: 0 auto;
}
.approach-phase {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
}
.approach-phase:last-child { padding-bottom: 0; }
.approach-phase:last-child .approach-phase-line { display: none; }
.approach-phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.approach-phase-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.approach-phase-line {
  width: 1px;
  flex: 1;
  background: rgba(255,255,255,0.1);
  margin-top: 12px;
}
.approach-phase-content { padding-top: 6px; }
.approach-phase-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.approach-phase-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.approach-phase-time {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  background: rgba(98, 187, 70, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}
.approach-phase-content p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Engagement Models --- */
.section-models {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.model-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}
.model-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(98,187,70,0.2);
}
.model-card-featured {
  background: rgba(98,187,70,0.06);
  border-color: rgba(98,187,70,0.15);
}
.model-card-featured .model-tag { background: rgba(98, 187, 70, 0.15); color: var(--green); }
.model-card-featured p { color: rgba(255,255,255,0.6); }
.model-card-featured .model-detail { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
.model-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.model-card-top h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.model-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(98,187,70,0.1);
  color: var(--green);
}
.model-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}
.model-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.model-detail {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
}

/* --- Team --- */
.section-team {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  gap: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s var(--ease);
}
.team-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(98,187,70,0.15);
}
.team-card-avatar { flex-shrink: 0; }
.team-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(98,187,70,0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.team-card-info h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.team-role {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* --- Process CTA Cards --- */
.section-process {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.35s var(--ease);
}
.process-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(98,187,70,0.2);
}
.process-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}
.process-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* --- Contact / CTA --- */
.section-contact {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 120px 0;
}
.contact-wrapper {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  font-weight: 700;
}
.contact-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}
.contact-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(98, 187, 70, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans);
}
.contact-step strong {
  display: block;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo-svg { height: 32px; width: auto; }
.footer-center {
  font-size: 13px;
  color: var(--gray-500);
}
.footer-right {
  font-size: 13px;
  color: var(--gray-500);
}
.footer-right a {
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--white); }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-columns { grid-template-columns: 1fr; gap: 48px; }
  .triggers-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 33, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { font-size: 18px; color: var(--white); }
  .nav-links .nav-link-cta { font-size: 18px; }
  .nav-toggle { display: block; z-index: 1001; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-dark { min-height: auto; padding: 160px 24px 100px; }
  .hero-question { font-size: 2.8rem; -webkit-text-stroke: 1.5px var(--green); }
  .hero-answer { font-size: 1.8rem; }

  .about-bento { grid-template-columns: 1fr; }
  .contact-steps { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-question { font-size: 2.2rem; -webkit-text-stroke: 1px var(--green); }
  .hero-answer { font-size: 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .services-headline { font-size: 2rem; }
}
