/* Amfilitek-themed, mobile-first portal styling */
:root {
  --primary: #d1001c;      /* Tesla red */
  --secondary: #e8eef6;    /* light text */
  --muted: rgba(232,238,246,0.75);
  --background: #0b0f14;   /* deep background */
  --accent: #007a9a;       /* amfilitek blue */

  /* Pillbox visuals */
  --pill-bg: rgba(0, 122, 154, 0.12);
  --pill-border: rgba(0, 122, 154, 0.55);
  --pill-radius: 22px;

  /* Highlights variant */
  --amber-bg: rgba(255, 171, 64, 0.14);
  --amber-border: rgba(255, 171, 64, 0.60);
}

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

html {
  scroll-behavior: smooth;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: radial-gradient(900px 600px at 20% 0%, rgba(0,122,154,0.20), transparent 55%),
              radial-gradient(900px 600px at 80% 10%, rgba(209,0,28,0.18), transparent 60%),
              var(--background);
  color: var(--secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-bottom: 3px solid rgba(209,0,28,0.75);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.58) 70%, rgba(0,0,0,0.70) 100%);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  z-index: 1;
}

.hero-text h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: 0.2px;
  margin-bottom: 0.45rem;
}

.hero-text p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Navigation tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 0.95rem;
  border-radius: var(--pill-radius);
  color: var(--secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  background: rgba(0, 122, 154, 0.14);
  border-color: rgba(0, 122, 154, 0.55);
}

/* Pillbox sections */
.section {
  margin: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--pill-radius);
  background: var(--pill-bg);
  border: 1.5px solid var(--pill-border);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section.highlight {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.section h2 {
  color: #ff6b7d;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.section h3 {
  color: rgba(232,238,246,0.95);
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.section h4 {
  color: rgba(232,238,246,0.95);
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  font-size: 1.0rem;
}

.section p, .section li {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0.65rem;
}

.section ul, .section ol { margin-left: 1.25rem; }

.note {
  color: rgba(232,238,246,0.78);
  padding: 0.75rem 0.9rem;
  border-radius: var(--pill-radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Process list bubbles */
.process-list { counter-reset: step; list-style: none; padding-left: 0; }
.process-list li { position: relative; padding-left: 2.25rem; }
.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(209,0,28,0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Links and buttons */
a { color: #7fd6ff; }
a:hover { color: #b7ecff; }

.button {
  display: inline-block;
  background: rgba(209,0,28,0.92);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.12s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(0,122,154,0.85);
}

/* Footer */
.footer {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(232,238,246,0.70);
}

/* Larger screens */
@media (min-width: 900px) {
  .hero { height: 340px; }
  .hero-text h1 { font-size: 2.15rem; }
  body { font-size: 17px; }
  .section { max-width: 1100px; margin: 1.25rem auto; }
  .tile-grid { max-width: 1100px; margin: 0 auto; }
}
