:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --accent: #4fb3d4;
  --accent-2: #5dade2;
  --text: #1a2847;
  --muted: #5d6776;
  --card: rgba(255, 255, 255, 0.96);
  --border: rgba(26, 40, 71, 0.1);
  --shadow: 0 4px 24px rgba(26, 40, 71, 0.08);
  --shadow-hover: 0 12px 40px rgba(26, 40, 71, 0.16);
  --radius: 20px;
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #314869 0%, #5f789a 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: 'Inter', 'Manrope', sans-serif;
  font-weight: 700;
}

/* --- Reveal animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gradient background --- */
.gradient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(145, 205, 224, 0.2), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(173, 216, 245, 0.18), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(68, 96, 134, 0.2), transparent 60%);
  z-index: -2;
}

/* --- Sections --- */
.section {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-header .lede {
  color: rgba(255, 255, 255, 0.75);
}

.section-header .eyebrow {
  color: var(--accent-2);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: none;
}

.hero > * {
  width: 100%;
  max-width: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

.hero-copy {
  display: grid;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: inherit;
}

.hero .lede {
  max-width: 540px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-panel {
  display: grid;
  gap: 24px;
}

/* --- Cards --- */
.card {
  background: rgba(14, 27, 46, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 179, 212, 0.5);
  background: rgba(18, 34, 56, 0.74);
}

.card.highlight {
  border-color: rgba(79, 179, 212, 0.4);
  background: rgba(18, 34, 56, 0.72);
}

.hero .card.highlight {
  background: rgba(18, 34, 56, 0.74);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hero .card.highlight h3 {
  color: #ffffff;
}

.hero .card.highlight .kicker {
  color: var(--accent-2);
}

.hero .card.highlight .small {
  color: rgba(255, 255, 255, 0.7);
}

.card.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card.stats strong {
  font-size: 32px;
  display: block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .card.stats {
  background: rgba(18, 34, 56, 0.74);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.hero .card.stats strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: inherit;
}

/* --- Typography helpers --- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero .eyebrow {
  color: var(--accent-2);
}

.lede {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.65;
}

/* --- Topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 40, 71, 0.1);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4vw;
  transition: box-shadow var(--transition);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, #1a2847, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(79, 179, 212, 0.35);
  transition: transform var(--transition);
}

.logo-mark:hover {
  transform: scale(1.06) rotate(-2deg);
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #1a2847;
}

.nav { position: relative; }

.nav-toggle {
  display: none;
  background: none;
  color: #1a2847;
  border: 1px solid rgba(26, 40, 71, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav a {
  color: #1a2847;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a.active {
  background: #1a2847;
  color: #ffffff;
}

.nav .pill {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.nav .pill:hover {
  background: var(--accent);
  color: #fff;
}

.nav .pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 179, 212, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 12px 32px rgba(79, 179, 212, 0.45);
}

.btn.ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.btn.ghost:hover {
  border-color: var(--accent-2);
  color: #ffffff;
  background: rgba(79, 179, 212, 0.15);
}

.btn:hover {
  transform: translateY(-3px);
}

.cta-row {
  display: flex;
  gap: 14px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

/* --- Services --- */
.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-icon, .pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 179, 212, 0.12), rgba(93, 173, 226, 0.12));
  font-size: 22px;
  margin-bottom: 14px;
}

.service h3 {
  margin-bottom: 10px;
}

.home-links .service {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-links .service .btn {
  justify-self: start;
}

.service ul {
  list-style: none;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.service li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

/* --- Timeline --- */
.method .timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 48px;
  display: grid;
  gap: 36px;
  margin-left: 18px;
}

.method .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
}

.method .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  margin-left: -66px;
  box-shadow: 0 0 0 8px rgba(79, 179, 212, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.method .dot span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.method .step:hover .dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 12px rgba(79, 179, 212, 0.22);
}

.method .step h3 {
  margin-bottom: 6px;
  color: #ffffff;
}

.method .step p {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Studio pillars --- */
.studio .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* --- Privacy --- */
.privacy .privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.privacy .privacy-wide {
  grid-column: 1 / -1;
}

.privacy h2,
.privacy h3 {
  color: #ffffff;
}

.privacy .eyebrow {
  color: var(--accent-2);
}

.privacy .lede,
.privacy p {
  color: rgba(255, 255, 255, 0.75);
}

/* --- News --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.news-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.news-card {
  background: rgba(14, 27, 46, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 179, 212, 0.4);
  box-shadow: var(--shadow-hover);
}

.news-source {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
}

.news-card h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

.news-card h3 a:hover {
  color: var(--accent-2);
}

.news-description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date {
  font-style: italic;
}

.news-read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.news-read-more:hover {
  color: var(--accent-2);
}

.news-footer {
  margin-top: 24px;
  text-align: center;
}

.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.news-error p {
  margin: 8px 0;
}

/* --- Contact --- */
.contact .contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  background: rgba(14, 27, 46, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.contact h2 {
  color: #ffffff;
}

.contact .eyebrow {
  color: var(--accent-2);
}

.contact .lede {
  color: rgba(255, 255, 255, 0.75);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.details {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.map {
  background: rgba(12, 23, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.map-embed {
  height: 240px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 179, 212, 0.14), rgba(26, 40, 71, 0.12));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 30, 50, 0.72);
  backdrop-filter: blur(5px);
}

.map-placeholder p {
  margin: 4px 0;
  font-size: 14px;
}

.map-placeholder strong {
  font-size: 16px;
  color: #ffffff;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* --- Notice / Cookie banner --- */
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 40, 71, 0.98);
  color: rgba(255, 255, 255, 0.9);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  max-width: 640px;
  width: calc(100% - 40px);
  z-index: 30;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

.notice-text {
  line-height: 1.5;
}

.notice-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #ffffff;
}

.notice-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.notice-text a {
  color: var(--accent-2);
  text-decoration: underline;
  font-weight: 600;
}

.notice-text a:hover {
  color: #ffffff;
}

.notice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.notice-btn:hover {
  transform: translateY(-1px);
}

.notice-btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid rgba(79, 179, 212, 0.4);
}

.notice-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.kicker {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

/* --- Footer --- */
.footer {
  background: #0d1829;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0;
  padding: 52px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand .small {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  width: min(1200px, 92vw);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}

.pillars h3,
.service h3,
.card h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 840px) {
  .privacy .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy .privacy-wide {
    grid-column: 1 / -1;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 52px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 40, 71, 0.1);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    display: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .privacy .privacy-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 110px;
  }

  .notice {
    width: calc(100% - 24px);
  }

  .method .timeline {
    padding-left: 40px;
    margin-left: 12px;
  }

  .method .dot {
    margin-left: -58px;
  }
}
