/* ══════════════════════════════════════════════════════════
   AGENTTIM — Main Stylesheet
   ══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --accent:       #F9225B;
  --accent-dark:  #d41448;
  --text:         #1c1c1c;
  --text-muted:   #555555;
  --text-light:   #888888;
  --border:       #e4e4e4;
  --bg:           #fdfdfd;
  --hero-bg:      #ffffff;
  --footer-bg:    #111111;
  --footer-text:  #aaaaaa;
  --font:         'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:        1200px;
  --radius:       4px;
  --nav-h:        80px;
  --transition:   0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:            var(--font);
  font-weight:            400;
  color:                  var(--text);
  background:             var(--bg);
  line-height:            1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x:             hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width:   100%;
  max-width: var(--max-w);
  margin:  0 auto;
  padding: 0 40px;
}

/* ── Section Base ───────────────────────────────────────── */
.section {
  padding: 70px 0;
}

/* ── Dividers ───────────────────────────────────────────── */
.section-divider {
  width:  100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 56px;
}

.section-divider--bottom {
  margin-top: 56px;
  margin-bottom: 0;
}

/* ── Typography ─────────────────────────────────────────── */
.label {
  display:        block;
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  20px;
}

.heading-xl {
  font-size:   clamp(36px, 4.5vw, 58px);
  font-weight: 200;
  line-height: 1.08;
  color:       var(--text);
  letter-spacing: -0.01em;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font);
  font-weight:     400;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  transition:      background var(--transition), color var(--transition), opacity var(--transition);
  white-space:     nowrap;
}

/* Nav CTA */
.btn--nav {
  font-size:     11px;
  padding:       10px 22px;
  background:    var(--accent);
  color:         #fff;
  border-radius: var(--radius);
}
.btn--nav:hover { background: var(--accent-dark); }

/* Section CTA */
.btn--cta {
  font-size:     12px;
  padding:       16px 36px;
  background:    var(--accent);
  color:         #fff;
  border-radius: var(--radius);
  margin-top:    8px;
}
.btn--cta:hover { background: var(--accent-dark); }

/* LinkedIn (blue) */
.btn--linkedin {
  display:         block;
  text-align:      center;
  font-size:       13px;
  font-weight:     400;
  letter-spacing:  0.06em;
  text-transform:  none;
  padding:         14px 24px;
  background:      #2563eb;
  color:           #fff;
  border-radius:   var(--radius);
  transition:      background var(--transition);
}
.btn--linkedin:hover { background: #1d4ed8; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.nav {
  position:    fixed;
  top:         0;
  left:        0;
  right:       0;
  z-index:     100;
  height:      var(--nav-h);
  background:  var(--bg);
  border-bottom: 1px solid transparent;
  transition:  border-color var(--transition), box-shadow var(--transition);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}


.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          100%;
  max-width:       var(--max-w);
  margin:          0 auto;
  padding:         0 40px;
}

.nav__logo img {
  height:    57px;
  width:     auto;
  display:   block;
}

/* Nav link text color */
.nav__links {
  display:     flex;
  align-items: center;
  gap:         36px;
}

.nav__link {
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--text);
  transition:     color var(--transition);
}

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

/* ── Hamburger ──────────────────────────────────────────── */
.nav__hamburger {
  display:        none;
  flex-direction: column;
  justify-content: center;
  gap:            5px;
  width:          32px;
  height:         32px;
  padding:        4px;
}

.nav__hamburger span {
  display:    block;
  height:     2px;
  background: #1c1c1c !important;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: left center;
}


.nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translateY(-1px); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translateY(1px); }

/* ── Mobile drawer ──────────────────────────────────────── */
.nav__mobile {
  display:    flex;
  flex-direction: column;
  gap:        0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.35s ease;
}

.nav__mobile.is-open { max-height: 400px; }

.nav__mobile-link {
  display:    block;
  padding:    16px 40px;
  font-size:  12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:      var(--text);
  border-bottom: 1px solid var(--border);
}

.btn--mobile-cta {
  margin: 20px 40px 24px;
  width:  calc(100% - 80px);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  background:  #ffffff;
  display:     flex;
  align-items: center;
  justify-content: center;
  min-height:  100vh;
  padding:     80px 40px;
  overflow:    hidden;
  position:    relative;
}

.hero__iframe {
  display:    block;
  width:      100%;
  max-width:  660px;
  height:     660px;
  margin:     0 auto;
  border:     none;
  background: transparent;
}

.hero__overlay {
  display: none;
}

/* ── Scroll hint (chevron) ─────────────────────────────── */
.scroll-hint {
  position:     absolute;
  bottom:       32px;
  left:         50%;
  transform:    translateX(-50%);
  display:      flex;
  align-items:  center;
  justify-content: center;
  width:        44px;
  height:       44px;
  color:        var(--accent);
  opacity:      0.55;
  text-decoration: none;
  cursor:       pointer;
  animation:    scroll-hint-bounce 2.8s ease-in-out infinite;
  transition:   opacity 0.4s ease, transform 0.4s ease;
}

.scroll-hint:hover {
  opacity: 1;
  color:   var(--accent-dark);
}

.scroll-hint.is-hidden {
  opacity:        0;
  pointer-events: none;
  transform:      translateX(-50%) translateY(10px);
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

@media (max-height: 600px) {
  .scroll-hint { display: none; }
}

/* ══════════════════════════════════════════════════════════
   INTRODUCTION
   ══════════════════════════════════════════════════════════ */
.section--intro { padding-top: 0; }

.two-col {
  display:   grid;
  grid-template-columns: 1fr 1fr;
  gap:       56px;
  align-items: start;
  padding:   56px 0;
}

.two-col__left { }

.two-col__right {
  display:       flex;
  flex-direction: column;
  gap:           20px;
  padding-top:   6px;
}

.two-col__right p {
  font-size:   16px;
  line-height: 1.7;
  color:       var(--text);
}

/* ══════════════════════════════════════════════════════════
   COMPLIANCE TABLE
   ══════════════════════════════════════════════════════════ */
.section--compliance .heading-xl {
  margin-bottom: 24px;
}

.section__lead {
  font-size:     16px;
  line-height:   1.7;
  color:         var(--text);
  max-width:     860px;
  margin-bottom: 52px;
}

.table-label {
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--text);
  margin-bottom:  20px;
}

.compare-table {
  width:           100%;
  border-collapse: collapse;
  font-size:       15px;
  line-height:     1.6;
}

.compare-table td {
  padding:      20px 24px;
  border:       1px solid var(--border);
  vertical-align: middle;
}

.compare-table td:first-child {
  color:  var(--text-muted);
  width:  48%;
}

.compare-table td:last-child {
  color: var(--text);
}

.arrow {
  color:       var(--accent);
  margin-right: 8px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   WHY DIFFERENT — 4 COLUMN CARDS
   ══════════════════════════════════════════════════════════ */
.section--different .heading-xl {
  margin-bottom: 48px;
}

.cards-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  border:                1px solid var(--border);
}

.card {
  padding:      36px 28px;
  border-right: 1px solid var(--border);
}

.card:last-child { border-right: none; }

.card__num {
  display:     block;
  font-size:   11px;
  font-weight: 400;
  color:       var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.card__title {
  font-size:     14px;
  font-weight:   600;
  color:         var(--text);
  margin-bottom: 14px;
  line-height:   1.35;
}

.card p {
  font-size:   13.5px;
  line-height: 1.65;
  color:       var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   CORE TECH — NUMBERED LIST
   ══════════════════════════════════════════════════════════ */
.section--tech .heading-xl {
  margin-bottom: 56px;
}

.tech-list {
  display:        flex;
  flex-direction: column;
  gap:            0;
}

.tech-item {
  display:     grid;
  grid-template-columns: 56px 1fr;
  gap:         32px;
  align-items: start;
  padding:     40px 0;
  border-top:  1px solid var(--border);
}

.tech-item:last-child { border-bottom: 1px solid var(--border); }

.tech-item__num {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  background:      var(--accent);
  color:           #fff;
  font-size:       14px;
  font-weight:     600;
  border-radius:   var(--radius);
  flex-shrink:     0;
  margin-top:      2px;
}

.tech-item__title {
  font-size:     15px;
  font-weight:   600;
  color:         var(--text);
  margin-bottom: 12px;
}

.tech-item__body p {
  font-size:   15px;
  line-height: 1.7;
  color:       var(--text-muted);
}

.tech-bullets {
  display:        flex;
  flex-direction: column;
  gap:            10px;
}

.tech-bullets li {
  font-size:    15px;
  line-height:  1.65;
  color:        var(--text-muted);
  padding-left: 18px;
  position:     relative;
}

.tech-bullets li::before {
  content:     '●';
  position:    absolute;
  left:        0;
  top:         0;
  font-size:   6px;
  color:       var(--accent);
  line-height: 1.9;
}

/* ══════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════ */
.section--cta {
  padding-top: 0;
}

.cta-grid {
  display:   grid;
  grid-template-columns: 1fr 1fr;
  gap:       56px;
  align-items: center;
  padding:   56px 0;
}

.cta-grid__left .label { margin-bottom: 16px; }

.cta-grid__right {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.cta-grid__right p {
  font-size:   16px;
  line-height: 1.7;
  color:       var(--text);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  padding:    60px 0 32px;
}

.footer__main {
  text-align:    center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
  font-size:      28px;
  font-weight:    400;
  color:          var(--accent);
  letter-spacing: 0.04em;
  margin-bottom:  14px;
}

.footer__tagline {
  font-size:     14px;
  color:         var(--footer-text);
  margin-bottom: 10px;
}

.footer__built {
  font-size:     14px;
  color:         var(--footer-text);
  margin-bottom: 8px;
}

.footer__built a {
  color:      var(--accent);
  transition: opacity var(--transition);
}
.footer__built a:hover { opacity: 0.75; }

.footer__location {
  display:     inline-flex;
  align-items: center;
  gap:         5px;
  font-size:   13px;
  color:       var(--footer-text);
  margin-top:  4px;
}

.footer__location svg { opacity: 0.5; }

.footer__bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-top:     28px;
  gap:             16px;
}

.footer__copy {
  font-size: 12px;
  color:     var(--footer-text);
  opacity:   0.6;
}

.footer__socials {
  display:     flex;
  align-items: center;
  gap:         20px;
}

.footer__social-link {
  color:      var(--footer-text);
  opacity:    0.6;
  transition: opacity var(--transition);
  display:    flex;
}
.footer__social-link:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   CONTACT MODAL
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position:    fixed;
  inset:       0;
  z-index:     200;
  background:  rgba(0,0,0,0.5);
  display:     flex;
  align-items: center;
  justify-content: center;
  padding:     24px;
  opacity:     0;
  pointer-events: none;
  transition:  opacity 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
  opacity:        1;
  pointer-events: all;
}

.modal {
  background:    var(--bg);
  border-radius: 8px;
  padding:       40px 36px;
  width:         100%;
  max-width:     480px;
  position:      relative;
  transform:     translateY(12px);
  transition:    transform 0.2s ease;
}

.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position:    absolute;
  top:         16px;
  right:       16px;
  width:       32px;
  height:      32px;
  display:     flex;
  align-items: center;
  justify-content: center;
  color:       var(--text-light);
  border-radius: 50%;
  transition:  background var(--transition), color var(--transition);
}
.modal__close:hover { background: #f5f5f5; color: var(--text); }

.modal__title {
  font-size:   24px;
  font-weight: 200;
  color:       var(--text);
  margin-bottom: 8px;
}

.modal__sub {
  font-size:     14px;
  color:         var(--text-muted);
  margin-bottom: 32px;
}

.modal__row { margin-bottom: 24px; }
.modal__row:last-child { margin-bottom: 0; }

.modal__label {
  display:       block;
  font-size:     12px;
  font-weight:   400;
  color:         var(--text);
  margin-bottom: 10px;
}

/* Email row */
.email-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         12px 14px;
  background:      #f7f7f7;
  border-radius:   var(--radius);
  border:          1px solid var(--border);
}

.email-row__addr {
  font-size: 14px;
  color:     var(--text);
}

.copy-btn {
  display:     flex;
  align-items: center;
  color:       var(--text-light);
  padding:     4px;
  border-radius: var(--radius);
  transition:  color var(--transition), background var(--transition);
}
.copy-btn:hover { color: var(--text); background: #ebebeb; }
.copy-btn.is-copied { color: #16a34a; }

/* ══════════════════════════════════════════════════════════
   SCROLL FADE-IN ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.fade-in {
  opacity:   0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity:   1;
  transform: translateY(0);
}

.fade-in--delay { transition-delay: 0.15s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(2) { border-right: none; }
  .card:nth-child(3) { border-top: 1px solid var(--border); }
  .card:nth-child(4) {
    border-right: none;
    border-top: 1px solid var(--border);
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container { padding: 0 24px; }
  .section   { padding: 72px 0; }

  /* Nav */
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }

  /* Two-col → single */
  .two-col {
    grid-template-columns: 1fr;
    gap:      40px;
    padding:  56px 0;
  }

  /* CTA grid → single */
  .cta-grid {
    grid-template-columns: 1fr;
    gap:    40px;
    padding: 56px 0;
  }

  /* Cards → single col */
  .cards-grid { grid-template-columns: 1fr; }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .card:last-child { border-bottom: none; }

  /* Tech items */
  .tech-item {
    grid-template-columns: 44px 1fr;
    gap: 20px;
  }

  /* Dividers */
  .section-divider       { margin-bottom: 56px; }
  .section-divider--bottom { margin-top: 56px; }

  /* Footer */
  .footer__bottom {
    flex-direction: column;
    align-items:    center;
    gap:            16px;
    text-align:     center;
  }

  /* Compare table scroll */
  .compare-table { font-size: 13px; }
  .section--compliance { overflow-x: auto; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .compare-table { display: block; overflow-x: auto; }

  .modal { padding: 32px 24px; }

  .heading-xl { font-size: 32px; }
}
