/* Modular Metro Tile Layout Style */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap');

:root {
    --metro-blue: #0078D7;
    --metro-green: #107C10;
    --metro-orange: #D83B01;
    --metro-purple: #5C2D91;
    --metro-red: #E81123;
    --metro-teal: #00B294;
    --metro-dark: #1F1F1F;
    --metro-gray: #E6E6E6;
    --metro-light: #FFFFFF;
    --font-main: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--metro-dark);
    color: var(--metro-light);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 300; letter-spacing: 1px; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: 100%; object-fit: cover; display: block; }

/* Top Navigation Bar */
.metro-nav {
    background-color: var(--metro-blue);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.nav-brand { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 400; font-size: 1rem; padding: 5px 10px; transition: background 0.2s; }
.nav-links a:hover, .nav-links a.active { background-color: rgba(255,255,255,0.2); }
.nav-actions { display: flex; gap: 20px; align-items: center; }
.btn-outline { border: 2px solid white; padding: 8px 20px; font-weight: 600; transition: 0.2s; }
.btn-outline:hover { background: white; color: var(--metro-blue); }

/* Main Grid Container */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 10px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base Tile Style */
.tile {
    background-color: var(--metro-gray);
    color: var(--metro-dark);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-in-out, filter 0.2s;
    cursor: pointer;
}
.tile:hover {
    filter: brightness(1.1);
    transform: scale(0.98);
}
.tile-content { z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.tile-bg-icon { position: absolute; bottom: -20px; right: -20px; font-size: 10rem; opacity: 0.1; z-index: 1; }

/* Tile Sizes */
.tile-large { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; grid-row: span 1; }
.tile-tall { grid-column: span 1; grid-row: span 2; }
.tile-small { grid-column: span 1; grid-row: span 1; }

/* Tile Colors */
.bg-blue { background-color: var(--metro-blue); color: white; }
.bg-green { background-color: var(--metro-green); color: white; }
.bg-orange { background-color: var(--metro-orange); color: white; }
.bg-purple { background-color: var(--metro-purple); color: white; }
.bg-red { background-color: var(--metro-red); color: white; }
.bg-teal { background-color: var(--metro-teal); color: white; }
.bg-dark { background-color: #333333; color: white; }
.bg-light { background-color: var(--metro-gray); color: var(--metro-dark); }

/* Specific Tile Contents */
.hero-tile h1 { margin-bottom: 20px; font-weight: 700; }
.hero-tile p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-actions { display: flex; gap: 15px; margin-top: auto; }
.btn-solid { background: white; color: var(--metro-blue); padding: 10px 25px; font-weight: 700; border: none; cursor: pointer; transition: 0.2s; }
.btn-solid:hover { background: #f0f0f0; }

.trust-tile { justify-content: center; align-items: center; text-align: center; }
.trust-tile h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }

.metric-tile { justify-content: center; align-items: flex-start; }
.metric-tile .m-val { font-size: 3.5rem; font-weight: 300; line-height: 1; margin-bottom: 10px; }
.metric-tile .m-lbl { font-size: 1rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; }

.img-tile { padding: 0; }
.img-tile img { transition: transform 0.5s; }
.img-tile:hover img { transform: scale(1.05); }

.feat-tile h3 { font-weight: 700; margin-bottom: 15px; }
.feat-tile p { font-size: 1.1rem; opacity: 0.9; }

.node-tile { justify-content: flex-end; }
.node-tile h4 { font-size: 1.5rem; font-weight: 700; }
.node-tile span { font-size: 0.9rem; opacity: 0.8; }

.review-tile { justify-content: space-between; }
.rev-stars { color: #FFB900; font-size: 1.5rem; margin-bottom: 10px; }
.rev-text { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; }
.rev-user { font-weight: 700; text-transform: uppercase; }

.price-tile { text-align: center; justify-content: flex-start; }
.price-tile.recommended { border: 4px solid white; }
.p-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.p-val { font-size: 4rem; font-weight: 300; line-height: 1; margin-bottom: 30px; }
.p-val span { font-size: 1.2rem; }
.p-list { list-style: none; text-align: left; margin-bottom: auto; }
.p-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.p-list li::before { content: '+'; margin-right: 10px; font-weight: 700; }

.faq-tile { overflow-y: auto; }
.faq-tile h2 { margin-bottom: 30px; font-weight: 700; }
.faq-item { margin-bottom: 25px; }
.faq-q { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.faq-a { opacity: 0.9; }

.footer-tile { justify-content: space-between; }
.f-links { display: flex; flex-direction: column; gap: 10px; }
.f-links a:hover { text-decoration: underline; }

/* Section Headers within Grid */
.section-header {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    align-items: flex-end;
    padding: 0 0 20px 0;
    height: auto;
    min-height: 100px;
}
.section-header h2 { font-weight: 700; border-bottom: 4px solid var(--metro-blue); padding-bottom: 10px; display: inline-block; }

/* Subpages */
.sub-header-tile {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.dl-tile { text-align: center; justify-content: center; align-items: center; }
.dl-tile h3 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.dl-tile p { margin-bottom: 20px; opacity: 0.9; }

.help-nav-tile { gap: 15px; }
.help-nav-tile a { font-size: 1.2rem; font-weight: 700; padding: 10px; border-left: 4px solid transparent; }
.help-nav-tile a:hover, .help-nav-tile a.active { border-color: white; background: rgba(255,255,255,0.1); }
.help-content-tile { overflow-y: auto; }

/* Responsive */
@media (max-width: 1024px) {
    .metro-grid { grid-template-columns: repeat(3, 1fr); }
    .section-header, .sub-header-tile { grid-column: span 3; }
    .hero-tile { grid-column: span 3; }
    .price-tile { grid-column: span 1; }
}
@media (max-width: 768px) {
    .metro-nav { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .metro-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .section-header, .sub-header-tile { grid-column: span 2; }
    .hero-tile { grid-column: span 2; grid-row: span 2; }
    .tile-large, .tile-wide { grid-column: span 2; }
    .tile-tall { grid-row: span 1; }
    .price-tile { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 480px) {
    .metro-grid { grid-template-columns: 1fr; grid-auto-rows: auto; min-auto-rows: 200px; }
    .section-header, .sub-header-tile { grid-column: span 1; }
    .tile-large, .tile-wide, .hero-tile, .price-tile { grid-column: span 1; grid-row: auto; min-height: 250px; }
}
