/* ==========================================================================
   Fintech International — corporate site stylesheet
   Demo company for the 786 Cyber platform (not a real company)
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-700: #122a4d;
  --navy-600: #1b3a66;
  --blue: #1e6bff;
  --blue-600: #1657d6;
  --teal: #00b8a9;
  --gold: #c9a44c;
  --ink: #0e1726;
  --slate: #4a5568;
  --mist: #f5f7fb;
  --line: #e3e8f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 31, 58, 0.16);
  --maxw: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #dce5f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c6dc; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; }
.section--navy .eyebrow { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(30,107,255,.32); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: var(--slate); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .96rem; }
.nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(30,107,255,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0,184,169,.25), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-600) 100%);
}
.hero .container { padding-top: 96px; padding-bottom: 104px; position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { color: #c4d2ea; font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---- Stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat .label { color: #9fb2d1; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .96rem; }

/* feature row */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse { grid-template-columns: 1fr 1.1fr; }
.feature.reverse .feature-media { order: -1; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--slate); }
.feature li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; font-size: .7rem;
  width: 20px; height: 20px; background: var(--teal); border-radius: 50%; display: grid; place-items: center;
}
.feature-media {
  border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 120%);
  position: relative; overflow: hidden; display: grid; place-items: center; color: #fff;
}
.feature-media .glyph { font-size: 5rem; opacity: .9; }

/* ---- Offices ---- */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.office {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.office .flag { font-size: 1.6rem; }
.office address { font-style: normal; color: var(--slate); margin: 10px 0; }
.office .meta { font-size: .92rem; color: var(--slate); }

/* ---- Team ---- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.leader { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.leader .avatar {
  height: 150px; display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.leader .body { padding: 20px 22px 24px; }
.leader h3 { margin-bottom: 2px; }
.leader .role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.leader p { font-size: .92rem; margin: 0; }

/* directory table */
.dir-controls { display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 18px; }
.dir-controls input, .dir-controls select {
  padding: 11px 14px; border:1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.dir-controls input { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.dir { width: 100%; border-collapse: collapse; background:#fff; font-size: .92rem; }
table.dir th, table.dir td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dir th { background: var(--navy); color:#fff; font-weight:600; position: sticky; top: 0; cursor: pointer; user-select: none; }
table.dir th:hover { background: var(--navy-700); }
table.dir tbody tr:hover { background: var(--mist); }
table.dir td a { color: var(--blue); }
.badge { display:inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight:600; background: #eaf1ff; color: var(--blue-600); }
.badge.sa { background: #e6f7f4; color: #007f74; }

/* ---- Contact ---- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 8px; font-size: .96rem; font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.note { font-size:.82rem; color: var(--slate); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--teal)); color:#fff; border-radius: 20px; padding: 56px; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color:#aab8d2; padding: 64px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h4 { color:#fff; font-size:.95rem; text-transform: uppercase; letter-spacing:.08em; margin-bottom: 16px; }
.site-footer a { color:#aab8d2; display:block; margin-bottom: 10px; font-size:.92rem; }
.site-footer a:hover { color:#fff; }
.footer-brand p { color:#8294b5; font-size:.9rem; max-width: 300px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display:flex; justify-content: space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; color:#7588a8; }
.demo-banner { background: var(--gold); color: #2a2100; text-align:center; font-size:.82rem; font-weight:600; padding: 7px 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .leaders { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
  .contact-grid, .offices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background:#fff; padding: 16px 24px; border-bottom:1px solid var(--line); gap: 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .leaders, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
