/* Riptide AI Tools — shared styles */
:root {
  --ink: #091524;
  --ink-soft: #3a4658;
  --muted: #6b7686;
  --line: #e3e8ef;
  --bg: #F7F9FC;
  --surface: #F0FAFB;
  --white: #fff;
  --orange: #FF5C3A;
  --teal: #00C9B1;
  --navy: #0E2C4F;
  --navy-deep: #07182C;
  --blue: #1F5FB6;
  --sky: #E6F0FB;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, h5 { font-family: 'Fraunces', "Times New Roman", serif; letter-spacing: -0.015em; margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

.topbar {
  background: var(--navy-deep);
  color: #cfdcef; font-size: 12.5px; padding: 9px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar .pill {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; display: inline-flex; align-items: center; gap: 6px;
}
.topbar .pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.25);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,201,177,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(0,201,177,0); }
}

header.site {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8466 100%);
  position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(9,21,36,0.15);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 4px; border: 2px solid #fff;
  border-left: 0; border-bottom: 0; transform: rotate(45deg);
}
.brand .name {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: 18px; line-height: 1; color: var(--ink);
}
.brand .tag { font-size: 11px; color: var(--muted); margin-top: 3px; }

nav.site { display: flex; gap: 22px; align-items: center; }
nav.site a {
  font-size: 13.5px; color: var(--ink-soft);
  text-decoration: none; font-weight: 500;
}
nav.site a:hover { color: var(--ink); }
nav.site .btn {
  background: var(--orange); color: #fff;
  padding: 9px 16px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
}

@media (max-width: 760px) {
  nav.site { gap: 14px; }
  nav.site a:not(.btn) { display: none; }
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  border: none; padding: 13px 22px;
  border-radius: 9px; font-weight: 700;
  font-size: 14.5px; text-decoration: none;
  cursor: pointer; font-family: inherit;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); background: #ff7252; color: #fff; }
.btn-primary.large { font-size: 16px; padding: 16px 28px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 12px 20px;
  border-radius: 9px; font-weight: 700; font-size: 14.5px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.1); }
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--teal);
  border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,201,177,0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

footer.site {
  background: var(--navy-deep); color: rgba(255,255,255,0.65);
  padding: 56px 0 32px 0; font-size: 13.5px;
}
footer.site .wrap {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 820px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .wrap { grid-template-columns: 1fr; } }
footer.site h5 {
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 14px 0; font-weight: 700;
}
footer.site a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  display: block; padding: 4px 0;
}
footer.site a:hover { color: #fff; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; margin-top: 44px;
  font-size: 12px; color: rgba(255,255,255,0.5); text-align: center;
}

.hide { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
