/* ===== STARLI MARINE - Global Styles ===== */
:root {
  --navy: #0a1f33;
  --navy-2: #12314f;
  --steel: #5b6b7a;
  --light: #f4f7fa;
  --white: #ffffff;
  --accent: #00a8e8;
  --accent-dark: #0084b8;
  --orange: #ff8a3d;
  --success: #2eb872;
  --danger: #e05252;
  --border: #dde5ec;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #22303c;
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 51, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--white);
  letter-spacing: -1px;
}

.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 10.5px; color: #9db4c8; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: #c9d8e5;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 6px;
  transition: 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(0,168,232,0.18); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  padding: 9px 18px !important;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: #fff; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 4%;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; width: 100%; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,51,0.92) 20%, rgba(10,31,51,0.45) 70%, rgba(10,31,51,0.65) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero-kicker {
  display: inline-block;
  color: var(--accent);
  border: 1px solid rgba(0,168,232,0.5);
  background: rgba(0,168,232,0.12);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  color: #cfdeea;
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,232,0.25), transparent 70%);
}
.page-hero .crumb { color: #8fa8bd; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 12px; position: relative; z-index: 2;}
.page-hero p { color: #c3d5e4; max-width: 720px; font-size: 16.5px; position: relative; z-index: 2;}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--light); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.section-sub { color: var(--steel); font-size: 16.5px; }

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: 0.25s;
}
.section.alt .card { box-shadow: 0 1px 3px rgba(10,31,51,0.05); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,31,51,0.12); border-color: var(--accent); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(0,168,232,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--steel); font-size: 14.5px; margin-bottom: 14px; }
.card-link { color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ===== Feature row (image + text) ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(10,31,51,0.18); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-content h2 { color: var(--navy); font-size: 28px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.feature-content > p { color: var(--steel); font-size: 16px; margin-bottom: 20px; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-media { order: 0; }
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: #33424f;
  font-size: 15px;
}
.check-list li::before {
  content: "✔";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Stat band ===== */
.stat-band { background: var(--navy); padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { color: var(--accent); font-size: 40px; font-weight: 800; line-height: 1.1; }
.stat-label { color: #b7cadb; font-size: 14px; margin-top: 6px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Table ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(10,31,51,0.06); }
.data-table th {
  background: var(--navy); color: var(--white);
  text-align: left; padding: 13px 16px;
  font-size: 13.5px; letter-spacing: 0.5px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: #33424f; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f4faff; }

/* ===== Dashboard demo (visualization page) ===== */
.dash {
  background: #0d1b2a;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(10,31,51,0.35);
  font-family: "Segoe UI", sans-serif;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.dash-title { color: #e8f1f8; font-weight: 700; font-size: 16px; }
.dash-title small { display: block; color: #7d95ab; font-weight: 400; font-size: 12px; margin-top: 2px; }
.dash-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(46,184,114,0.15); color: var(--success);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.dash-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.dash-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-tab {
  background: rgba(255,255,255,0.07); color: #a9bdcf;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px; border-radius: 8px;
  font-size: 13.5px; cursor: pointer; transition: 0.2s; font-family: inherit; font-weight: 600;
}
.dash-tab:hover { color: #fff; }
.dash-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 16px; }
.kpi-val { color: #fff; font-size: 26px; font-weight: 800; }
.kpi-val small { font-size: 13px; color: #7d95ab; font-weight: 500; }
.kpi-label { color: #8fa8bd; font-size: 12.5px; margin-top: 3px; }
.kpi-val.good { color: var(--success); }
.kpi-val.warn { color: var(--orange); }

.progress-block { margin-bottom: 18px; }
.progress-head { display: flex; justify-content: space-between; color: #c6d6e4; font-size: 13.5px; margin-bottom: 7px; }
.progress-head b { color: #fff; font-weight: 700; }
.progress-bar { height: 10px; background: rgba(255,255,255,0.09); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #4dc6f0); width: 0; transition: width 1.2s cubic-bezier(0.2,0.8,0.2,1); }

.punch-list { margin-top: 6px; }
.punch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  margin-bottom: 9px;
  font-size: 13.5px; color: #c6d6e4;
}
.punch-id { color: #7d95ab; font-size: 12px; min-width: 60px; }
.punch-status {
  margin-left: auto;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.punch-status.open { background: rgba(224,82,82,0.16); color: #ff8f8f; }
.punch-status.closed { background: rgba(46,184,114,0.16); color: #5fd397; }

/* ===== Partner section ===== */
.partner-band { background: linear-gradient(120deg, #0e2438, #14395c); padding: 64px 0; }
.partner-badge {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.partner-name { color: var(--white); font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.partner-desc { color: #c3d5e4; font-size: 16px; max-width: 780px; margin-bottom: 26px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(100deg, var(--navy) 30%, var(--navy-2));
  padding: 68px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #b7cadb; font-size: 16.5px; margin-bottom: 30px; }

/* ===== Footer ===== */
.site-footer { background: #071523; padding: 56px 0 24px; color: #8fa8bd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-grid h4 { color: #d9e6f0; font-size: 14.5px; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid li a:hover { color: var(--white); }
.footer-bottom { padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Contact form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--navy); border-radius: 14px; padding: 34px; color: #c3d5e4; }
.contact-info-card h3 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 14.5px; }
.contact-line .ico { font-size: 18px; }
.contact-line b { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }

.form { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 34px; box-shadow: 0 4px 18px rgba(10,31,51,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  transition: 0.2s;
  background: #fbfdff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,232,0.14);
}
.form-note { font-size: 12.5px; color: var(--steel); margin-top: 12px; }

/* ===== Misc ===== */
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  background: rgba(0,168,232,0.1);
  color: var(--accent-dark);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}

.divider-soft { height: 1px; background: var(--border); margin: 40px 0; }

.badge-new {
  background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-left: 10px; vertical-align: middle;
}
