/* ==========================================================================
   Tawifin — Composable Digital Banking Platform
   Stylesheet
   ========================================================================== */

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

:root {
  /* Color tokens */
  --navy-950: #050d1f;
  --navy-900: #0a1a36;
  --navy-800: #0b1d3a;
  --navy-700: #112a55;
  --navy-600: #1b3a73;
  --navy-500: #2b4d8c;

  /* Brand teal (matches Tawifin logo) */
  --emerald-700: #0f766e;
  --emerald-600: #0d9488;
  --emerald-500: #14b8a6;
  --emerald-400: #2dd4bf;
  --emerald-50: #f0fdfa;

  --bg: #f6f8fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-elevated: #ffffff;

  --text: #0b1d3a;
  --text-muted: #4d5d7a;
  --text-soft: #6b7a96;

  --border: #e3e8f0;
  --border-strong: #d3dbe7;

  --shadow-sm: 0 1px 2px rgba(11, 29, 58, 0.04), 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 29, 58, 0.06), 0 2px 4px rgba(11, 29, 58, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(11, 29, 58, 0.18);
  --shadow-xl: 0 30px 70px -20px rgba(11, 29, 58, 0.32);

  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Instrument Serif', 'Manrope', Georgia, serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emerald-600);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald-600);
  letter-spacing: -0.02em;
}

/* Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-sm {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head p {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(11, 29, 58, 0.45);
}

.btn-primary:hover {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(11, 29, 58, 0.5);
}

.btn-accent {
  background: var(--emerald-500);
  color: #052e1a;
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.4);
}

.btn-accent:hover {
  background: var(--emerald-400);
  color: #052e1a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: grid;
  place-items: center;
  color: var(--emerald-400);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: inset 0 -2px 0 rgba(20, 184, 166, 0.5);
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--navy-900);
  background: rgba(11, 29, 58, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn:not(.nav-toggle) {
    display: none;
  }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 24px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--navy-900);
  font-weight: 500;
}

.mobile-menu ul a:hover,
.mobile-menu ul a.is-active {
  background: var(--bg-soft);
}

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  color: #fff;
}

.mobile-menu .btn:hover { color: #fff; }

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 77, 140, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-meta .stat {
  display: flex;
  flex-direction: column;
}

.hero-meta .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.hero-meta .stat-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

/* Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: grid;
  place-items: center;
  color: var(--emerald-400);
  margin-bottom: 22px;
}

.card-icon.accent {
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
  color: #fff;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

.card.outline {
  background: transparent;
  border-style: dashed;
}

.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* Feature list
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

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

.feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row.reverse .feature-visual {
  order: -1;
}

@media (max-width: 880px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-row.reverse .feature-visual { order: 0; }
}

.feature-row h2 {
  margin-bottom: 14px;
}

.feature-visual {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 280px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.check-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald-50);
  border: 1.5px solid var(--emerald-500);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23047857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Dark CTA band
   ========================================================================== */
.band-dark {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.band-dark::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, transparent 70%);
}

.band-dark::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43, 77, 140, 0.35) 0%, transparent 70%);
}

.band-dark > * {
  position: relative;
  z-index: 1;
}

.band-dark h2 {
  color: #fff;
  margin-bottom: 14px;
}

.band-dark p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.band-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.band-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Logo strip
   ========================================================================== */
.logo-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.logo-strip-title {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 28px;
  font-weight: 600;
}

.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0.7;
}

.logo-strip-row span {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Solutions card variant
   ========================================================================== */
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  position: relative;
}

.solution-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-card .solution-tag {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-card h3 {
  font-size: 1.4rem;
}

.solution-card .check-list {
  margin-top: 8px;
}

/* Architecture diagram blocks
   ========================================================================== */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
}

.arch-layer.is-emerald {
  background: linear-gradient(135deg, var(--emerald-50) 0%, #fff 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.arch-layer.is-navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-color: transparent;
}

.arch-layer.is-navy .arch-layer-title { color: #fff; }
.arch-layer.is-navy .arch-layer-sub { color: rgba(255,255,255,0.72); }

.arch-layer-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}

.arch-layer-sub {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.arch-layer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--navy-800);
  flex-shrink: 0;
}

.arch-layer.is-navy .arch-layer-icon {
  background: rgba(255,255,255,0.1);
  color: var(--emerald-400);
}

/* Brochure cards
   ========================================================================== */
.brochure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.brochure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.brochure-thumb {
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.86);
}

.brochure-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.32), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(43, 77, 140, 0.4), transparent 50%);
}

.brochure-thumb svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
}

.brochure-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
}

.brochure-status.available {
  background: var(--emerald-500);
  color: #052e1a;
}

.brochure-card h3 {
  font-size: 1.2rem;
}

.brochure-card p {
  font-size: 0.95rem;
}

.brochure-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.brochure-card .btn[disabled] {
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: not-allowed;
  box-shadow: none;
}

.brochure-card .btn[disabled]:hover {
  transform: none;
}

/* Forms
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-info-item p {
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 500;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--navy-900);
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.form-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Footer
   ========================================================================== */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-brand a {
  color: var(--emerald-400);
}

.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--emerald-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom strong { color: rgba(255,255,255,0.75); }

/* Page header (interior pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  z-index: 0;
}

.page-header > * { position: relative; z-index: 1; }

.page-header h1 {
  max-width: 18ch;
  margin-bottom: 22px;
}

.page-header .lead {
  max-width: 64ch;
}

/* Animations (subtle)
   ========================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.delay-1 { animation-delay: 0.08s; }
.reveal.delay-2 { animation-delay: 0.16s; }
.reveal.delay-3 { animation-delay: 0.24s; }
.reveal.delay-4 { animation-delay: 0.32s; }

/* Prose (legal pages)
   ========================================================================== */
.prose h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.75;
}

.prose ul.check-list {
  margin: 14px 0 22px;
}

.prose a {
  color: var(--emerald-700);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.prose a:hover {
  color: var(--emerald-600);
  border-bottom-color: var(--emerald-600);
}

/* Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -8px rgba(11, 29, 58, 0.45);
  padding: 22px 24px;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner strong {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.cookie-banner p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 60ch;
}

.cookie-banner a {
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover { color: var(--emerald-400); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn-primary {
  background: var(--emerald-500);
  color: #052e1a;
}

.cookie-banner .btn-primary:hover {
  background: var(--emerald-400);
  color: #052e1a;
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-banner-inner { gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* Utility
   ========================================================================== */

/* Outcomes band (4 metrics dark stripe) */
.outcomes-band {
  background: linear-gradient(135deg, #0d9488 0%, #0a1a36 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.outcomes-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(45, 212, 191, 0.25), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(43, 77, 140, 0.5), transparent 50%);
  pointer-events: none;
}

.outcomes-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 880px) {
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .outcomes-grid { grid-template-columns: 1fr; }
}

.outcome-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outcome-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--emerald-400);
  margin-bottom: 8px;
}

.outcome-item-icon svg { width: 22px; height: 22px; }

.outcome-item h3 {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.outcome-item p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Value props grid (6 pillars from brochure) */
.value-prop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-prop:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-lg);
}

.value-prop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--emerald-50);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: grid;
  place-items: center;
  color: var(--emerald-600);
}

.value-prop-icon svg { width: 26px; height: 26px; }

.value-prop h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.value-prop p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Mission / Vision cards */
.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.mv-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--emerald-50);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: grid;
  place-items: center;
  color: var(--emerald-700);
}

.mv-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 10px;
  font-weight: 700;
}

.mv-card p {
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.65;
}

/* Ownership card (Tawifin · built and owned by Wyra) */
.ownership-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  justify-content: center;
}

.ownership-card .ownership-shield {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-50);
  display: grid;
  place-items: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

.ownership-card .ownership-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.ownership-card span {
  font-size: 0.92rem;
  color: var(--navy-900);
  font-weight: 500;
}

.ownership-card strong {
  color: var(--emerald-700);
  font-weight: 700;
}

/* Audience pill grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.audience-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.audience-pill:hover {
  border-color: var(--emerald-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.audience-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-50);
  display: grid;
  place-items: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

.audience-pill-icon svg { width: 18px; height: 18px; }

.audience-pill span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* Capability chip grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.capability-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.capability-chip:hover {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
}

.capability-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--emerald-700);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.capability-chip:hover .capability-chip-icon {
  background: #fff;
}

.capability-chip-icon svg { width: 16px; height: 16px; }

.capability-chip span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.3;
}

/* Marquee logo strip */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.75;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Floating phone mockup (for hero / brochure preview) */
.figure-float {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: relative;
}

.figure-float img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--navy-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section divider with dot */
.divider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 48px 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.divider-dot::before,
.divider-dot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

/* Utility
   ========================================================================== */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
