/* Fileson — Global Stylesheet
   Design: Minimal Nordic SaaS
   Palette: Navy #0F1B2D, Electric Blue #2B7FFF, Light Gray #F5F7FA
   Typography: Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0F1B2D;
  --blue: #2B7FFF;
  --blue-dark: #1A5FCC;
  --gray-bg: #F5F7FA;
  --gray-100: #E8ECF1;
  --gray-200: #D0D6DF;
  --gray-400: #8A94A6;
  --gray-600: #5A6478;
  --white: #FFFFFF;
  --text: #1A2332;
  --text-light: #5A6478;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / NAV ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
}

/* ---- HERO ---- */

.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #162544 50%, #1a3058 100%);
  color: var(--white);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(43,127,255,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 32px 32px; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero .btn-outline {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

.hero .btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Hero visual — CSS-only cloud/shield illustration */
.hero-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .shield {
  width: 180px;
  height: 210px;
  background: linear-gradient(160deg, rgba(43,127,255,0.25) 0%, rgba(43,127,255,0.08) 100%);
  border: 2px solid rgba(43,127,255,0.35);
  border-radius: 8px 8px 50% 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.hero-visual .shield::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 3px solid rgba(43,127,255,0.7);
  border-radius: 6px;
  transform: rotate(45deg);
}

.hero-visual .orbit {
  position: absolute;
  border: 1px dashed rgba(43,127,255,0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.hero-visual .orbit-1 { width: 300px; height: 300px; }
.hero-visual .orbit-2 { width: 400px; height: 400px; animation-duration: 45s; animation-direction: reverse; }

.hero-visual .node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(43,127,255,0.5);
}

.hero-visual .node-1 { top: 10%; left: 20%; }
.hero-visual .node-2 { top: 70%; right: 15%; }
.hero-visual .node-3 { bottom: 10%; left: 40%; }
.hero-visual .node-4 { top: 30%; right: 10%; width: 6px; height: 6px; opacity: 0.5; }

.hero-visual .float-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

.hero-visual .float-card-1 { top: 15%; right: 5%; }
.hero-visual .float-card-2 { bottom: 20%; left: 5%; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--navy);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- SECTIONS ---- */

section {
  padding: 80px 0;
}

.section-gray { background: var(--gray-bg); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---- FEATURE GRID ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(15,27,45,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(43,127,255,0.08);
  border-radius: 10px;
  color: var(--blue);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- STATS ROW ---- */

.stats-section {
  background: var(--navy);
  padding: 56px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ---- LOGO STRIP ---- */

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
  opacity: 0.4;
}

.logo-strip span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---- CTA BANNER ---- */

.cta-banner {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--gray-400);
  margin-bottom: 28px;
}

/* ---- PRICING ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  padding: 36px 32px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(43,127,255,0.12);
  position: relative;
}

.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.price-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B7FFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.price-card .btn { width: 100%; text-align: center; }

/* ---- COMPARISON TABLE ---- */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-bg);
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.check { color: var(--blue); font-weight: 600; }
.dash { color: var(--gray-200); }

/* ---- BLOG ---- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  padding: 32px;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(15,27,45,0.06);
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--blue); }

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Blog Post */

.post-hero {
  background: var(--navy);
  padding: 80px 0 60px;
}

.post-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  max-width: 720px;
}

.post-hero .post-meta {
  color: var(--gray-400);
}

.post-header {
  padding: 80px 0 40px;
}

.post-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  max-width: 720px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 12px;
}

.post-body {
  max-width: 720px;
  padding: 48px 0 80px;
}

/* Blog index header */
.blog-hero {
  background: var(--navy);
  padding: 80px 0 60px;
}

.blog-hero .section-title { color: var(--white); }
.blog-hero .section-sub { color: var(--gray-400); margin-bottom: 0; }

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body p {
  margin-bottom: 16px;
  color: var(--text);
}

.post-body ul, .post-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-light);
  font-style: italic;
}

/* ---- TEAM ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-member {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gray-bg);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}

.team-member h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.team-member p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- CONTACT FORM ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

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

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}

.faq-item summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}

/* ---- FOOTER ---- */

.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.85rem;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: var(--gray-400);
}

/* ---- LEGAL PAGES ---- */

.legal-body {
  max-width: 720px;
  padding: 80px 0;
}

.legal-body h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-body .legal-updated {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-body p, .legal-body li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ---- 404 ---- */

.error-page {
  text-align: center;
  padding: 160px 24px;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--gray-200);
  line-height: 1;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 12px 0 28px;
}

/* ---- IMAGE BAND ---- */

.img-band {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.img-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.img-band .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.img-band .overlay h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  max-width: 500px;
}

.img-band .overlay p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ---- SECURITY PAGE ---- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.security-card {
  padding: 32px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}

.security-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.security-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .features-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 48px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
