/* CTI Services marketing site — shared styles
   Palette: --teal #123646 / --orange #e36b1d / --beige #c0bfba */

:root {
  --teal: #123646;
  --teal-light: #1a4a5e;
  --teal-dark: #0c2832;
  --orange: #e36b1d;
  --orange-light: #f08540;
  --orange-glow: rgba(227, 107, 29, 0.15);
  --beige: #c0bfba;
  --beige-light: #d4d3ce;
  --bg: #0c2832;
  --bg-alt: #0f2f3c;
  --surface: #133d4f;
  --border: #1a4a5e;
  --text: #e8e6e1;
  --text-dim: #9fb0b8;
  --radius: 12px;
  --green: #57a773;
  --red: #e4585b;
  --blue: #7cabf7;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 40, 50, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img { height: 40px; width: auto; }

.nav-logo .product-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-logo .product-name span { color: var(--orange); }

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav a.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a.nav-link:hover { color: var(--orange-light); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 60%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-content.narrow { max-width: 700px; }

.hero .product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero .product-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin: 0 auto 2.5rem;
  max-width: 700px;
}

.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 107, 29, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--orange); color: var(--orange-light); }

/* Hero mock browser */
.hero-shot {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 4rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.hero-shot .browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.hero-shot .browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-shot .browser-bar .b-dot:nth-child(1) { background: #e4585b; }
.hero-shot .browser-bar .b-dot:nth-child(2) { background: #e3b23c; }
.hero-shot .browser-bar .b-dot:nth-child(3) { background: #57a773; }

.hero-shot .browser-bar .url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  margin-left: 0.5rem;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.mock-app { display: grid; text-align: left; }
.mock-app.two-col { grid-template-columns: 180px 1fr; }

.mock-sidebar {
  border-right: 1px solid var(--border);
  padding: 1rem 0.75rem;
  background: var(--bg-alt);
}

.mock-sidebar .mb-item {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 2px;
}

.mock-sidebar .mb-item.active { background: var(--orange-glow); color: var(--orange-light); }

.mock-sidebar .mb-badge {
  float: right;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  border-radius: 999px;
  padding: 0 0.45rem;
}

.mock-list { padding: 0; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.mock-row:last-child { border-bottom: none; }

.mock-row .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-row .from { font-weight: 600; width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .subj { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mock-row .flag {
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.flag.ok, .mock-row .flag.spam-blocked { background: rgba(87, 167, 115, 0.15); color: var(--green); }
.flag.dkim { background: var(--orange-glow); color: var(--orange-light); }
.flag.passkey { background: rgba(28, 100, 242, 0.15); color: var(--blue); }
.flag.warn { background: rgba(227, 178, 60, 0.15); color: #e3b23c; }
.flag.fail { background: rgba(228, 88, 91, 0.15); color: var(--red); }
.flag.info { background: rgba(28, 100, 242, 0.15); color: var(--blue); }

.mock-row .date { color: var(--text-dim); font-size: 0.75rem; flex-shrink: 0; }

/* Sections */
section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange-light);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 3rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover { border-color: var(--orange); transform: translateY(-4px); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

.feature-card ul { list-style: none; margin-top: 1rem; }

.feature-card ul li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Stats */
.stats {
  background: var(--bg-alt);
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.25rem; }

/* Split section (why/text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.split-text h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.split-text p { color: var(--text-dim); margin-bottom: 1rem; }

.split-text .quote {
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}

.split-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.split-visual h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-item:last-child { border-bottom: none; }

.compare-item .mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.compare-item .mark.yes { background: rgba(87, 167, 115, 0.2); color: var(--green); }
.compare-item .mark.no { background: rgba(228, 88, 91, 0.2); color: var(--red); }
.compare-item .vs { color: var(--text-dim); }
.compare-item strong { color: var(--text); }

/* Contact */
.contact {
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  margin: 2rem;
}

.contact h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.1rem; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--orange-light); }

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .section-title { font-size: 1.8rem; }
  nav ul { display: none; }
  .split { grid-template-columns: 1fr; }
  .mock-app.two-col { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-row .from { width: 90px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.fade-in { animation: fadeInUp 0.6s ease-out; }

/* Screenshot gallery */
.shots { max-width: 1080px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.shots h3 { font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.25rem; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.shot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.shot-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.shot-card img { display: block; width: 100%; height: auto; }
.shot-card figcaption { padding: 0.8rem 1rem; font-size: 0.85rem; color: var(--text-dim); }
.hero-shot.real img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .shots { margin-bottom: 3rem; } }
