/* =====================================================
   code.css — Styles for code.html (Scott's Academy)
   Replaces Tailwind CSS CDN
   ===================================================== */

/* ── CSS Variables (Design Tokens) ── */
:root{
    --color-primary: #0b3d6f;
    --color-accent: #00B8D9;
    --color-bg-light: #f6f7f8;
    --color-bg-dark: #111a22;
    --color-surface-dark: #1a2633;
    --color-border-dark: #243647;
    --font-display: 'Lexend', sans-serif;
    --font-serif: 'Playfair Display', serif;
}
body.dark-mode {
    --color-primary: #0b3d6f;
    --color-accent: #00B8D9;
    --color-bg-light: #f6f7f8;
    --color-bg-dark: #111a22;
    --color-surface-dark: #1a2633;
    --color-border-dark: #243647;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--color-bg-light);
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
    font-family: var(--font-display);
    background-color: var(--color-bg-dark);
    color: #f1f5f9; /* slate-100 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ── Custom Component Classes ── */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    color: #000000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .glass-panel {
    background: rgba(26, 38, 51, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel h3, .glass-panel p {
    color: #000000 !important;
}

body.dark-mode .glass-panel h3{
    color: rgb(156, 213, 255) !important;
}

body.dark-mode .glass-panel p {
    color: rgb(255, 255, 255, 0.6) !important;
}


.glass-card {
    background: linear-gradient(180deg, rgba(36, 54, 71, 0.4) 0%, rgba(17, 26, 34, 0.4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(1, 37, 63, 0.5);
    transition: all 0.3s ease;
}

body.dark-mode .glass-card {
    background: linear-gradient(180deg, rgba(36, 54, 71, 0.4) 0%, rgba(17, 26, 34, 0.4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(51, 77, 102, 0.5);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 184, 217, 0.15);
    transform: translateY(-2px);
}

body.dark-mode .glass-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #92adc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout Utilities ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .container { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
    .container { padding-left: 32px; padding-right: 32px; }
}

.container--narrow {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--color-border-dark);
    background-color: rgba(17, 26, 34, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.navbar__icon {
    display: flex;
    height: 32px;
    width: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--color-primary);
    color: #fff;
}

.navbar__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.navbar__nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .navbar__nav { display: flex; }
    .navbar__mobile-btn { display: none; }
}

.navbar__link {
    font-size: 14px;
    font-weight: 500;
    color: #CBD5E1; /* slate-300 */
    transition: color 0.2s;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--color-accent);
}

.navbar__link--active {
    color: #fff;
}

.navbar__cta {
    display: none;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--color-primary);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 61, 111, 0.2);
    transition: background-color 0.2s, opacity 0.2s;
}

.navbar__cta:hover { opacity: 0.9; }

@media (min-width: 768px) {
    .navbar__cta { display: flex; }
}

.navbar__mobile-btn {
    background: none;
    border: none;
    color: #fff;
}

/* ── Main ── */
main {
    flex: 1;
}

/* ── Hero / Problem Section ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
}

@media (min-width: 1024px) {
    .hero { padding: 96px 0; }
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(11, 61, 111, 0.2);
    border-radius: 50%;
    filter: blur(100px);
    transform: translateY(-50%) translateX(33%);
}

.hero__blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(0, 184, 217, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    transform: translateY(33%) translateX(-25%);
}

.hero__content {
    position: relative;
    z-index: 10;
}

.hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}
/* .hero__image-wrap{
    display: none !important;
} */
/* .hero__image-overlay{
    display: none !important;
}
.hero__image{
    display: none !important;
} */

@media (min-width: 920px) {
    .hero__grid { grid-template-columns: 1fr 1fr; }
}

.hero__text {
    display: flex;
    flex-direction: column;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 184, 217, 0.3);
    background-color: rgba(0, 184, 217, 0.1);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    width: fit-content;
}

.hero__badge .material-symbols-outlined {
    font-size: 16px;
}

.hero__title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #092e5e;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero__title { font-size: 48px; }
}

.hero__title .accent { color: var(--color-accent); }

.hero__desc {
    font-size: 18px;
    color: #3d3d3d;
    line-height: 1.75;
    max-width: 576px;
    text-align: justify;
}

body.dark-mode .hero__desc {
    color: #CBD5E1;
}

/* Problem stat cards */
.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .problems-grid { grid-template-columns: 1fr 1fr; }
}

.problem-card {
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 -4px 12px rgba(11, 61, 111, 0.5);
}

.problem-card--full {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.problem-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.problem-card .material-symbols-outlined {
    color: var(--color-accent);
    margin-top: 4px;
}

.problem-card h3 {
    font-weight: 700;
    color: #05bcea !important;
    font-size: 20px;
}

.problem-card p {
    font-size: 12px;
    color: #94A3B8; /* slate-400 */
    margin-top: 4px;
}

/* Hero Image */
.hero__image-wrap {
    position: relative;
    min-height: 400px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 25px 50px rgba(0,0,0,0.5); */
    /* border: 1px solid var(--color-border-dark); */
}

.hero__image-wrap:hover .hero__image { transform: scale(1.05); }

.hero__image-overlay {
    position: absolute;
    inset: 0;
    background: rgb(2, 84, 102);
    mix-blend-mode: overlay;
    z-index: 10;
}

.hero__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero__quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, var(--color-bg-dark) 0%, rgba(17,26,34,0.9) 50%, transparent 100%);
    z-index: 20;
}

.hero__quote p {
    font-family: var(--font-serif);
    font-style: italic;
    color: #CBD5E1;
}

.hero__quote .attribution {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

/* ── Mission Section ── */
.mission {
    padding: 80px 0;
    background-color: var(--color-surface-dark);
    border-top: 1px solid var(--color-border-dark);
    border-bottom: 1px solid var(--color-border-dark);
    text-align: center;
}

.mission__label {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.mission__quote {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

@media (min-width: 920px) { .mission__quote { font-size: clamp(36px, 5vw, 48px); } }

.mission__quote .accent { color: var(--color-accent); }

.mission__divider {
    height: 4px;
    width: 96px;
    background-color: var(--color-primary);
    border-radius: 9999px;
    margin: 40px auto 0;
}

/* ── Solution Section ── */
.solution {
    padding: 80px 0;
    position: relative;
}

@media (min-width: 1024px) { .solution { padding: 112px 0; } }

.solution__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 920px) {
    .solution__grid { grid-template-columns: 5fr 7fr; }
}
@media (max-width:920px){
    .solution__img-col { 
        max-width:450px ;
    }
    .solution__body{
        text-align: justify;
    }
}

/* Image col */
.solution__img-col {
    order: 2;
    position: relative;
}

.solution__img-col { order: 1; }

.solution__glow {
    position: absolute;
    inset: -16px;
    background: linear-gradient(to top right, var(--color-primary), var(--color-accent));
    opacity: 0.2;
    filter: blur(24px);
    border-radius: 50%;
}

.solution__img-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.solution__img-frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.solution__founder-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(17, 26, 34, 0.9);
    backdrop-filter: blur(4px);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border-dark);
}

.solution__founder-card .name {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.solution__founder-card .title {
    color: var(--color-accent);
    font-size: 14px;
    margin-top: 4px;
}

/* Content col */
.solution__content-col {
    order: 1;
}

@media (min-width: 1024px) { .solution__content-col { order: 2; } }

.solution__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.solution__eyebrow .line {
    height: 1px;
    width: 40px;
    background-color: var(--color-accent);
}

.solution__eyebrow span {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.solution__title {
    font-size: 28px;
    font-weight: 700;
    color: #07295f;
    margin-bottom: 24px;
}
body.dark-mode .solution__title {
    color: #86aecc;
}

@media (min-width: 768px) { .solution__title { font-size: 36px; } }

.solution__body {
    color: #4f4f4f;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.dark-mode .solution__body {
    color: #CBD5E1;
}

.solution__body p { line-height: 1.75; }
.solution__body p:first-child { font-size: 18px; }

.solution__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.solution__check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #114b55;
}
body.dark-mode .solution__check {
    color: #CBD5E1;
}

.solution__check .material-symbols-outlined { color: var(--color-accent); }
body.dark-mode .solution__check .material-symbols-outlined {
    color: #CBD5E1;
}

.solution__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
}

.solution__btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.solution__btn .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.solution__btn:hover .material-symbols-outlined { transform: translateX(4px); }

/* ── Why Choose Us ── */
.why-us {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--color-bg-dark), #08121a);
    position: relative;
}

.why-us__header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 64px;
}

.why-us__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

@media (min-width: 768px) { .why-us__title { font-size: 36px; } }

.why-us__subtitle {
    color: #94A3B8;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
}

@media (min-width: 768px) { .why-us__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-us__grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-card__icon {
    display: flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(11, 61, 111, 0.2);
    color: var(--color-accent);
    margin-bottom: 24px;
}

.why-card__icon .material-symbols-outlined { font-size: 28px; }

.why-card__title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.why-card__desc {
    color: #94A3B8;
    font-size: clamp(10px, 2vw, 14px);
    line-height: 1.75;
    flex: 1;
}

/* ── CTA Section ── */
.cta {
    padding: 64px 0;
}

.cta__card {
    border-radius: 24px;
    background-color: var(--color-primary);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) { .cta__card { padding: 48px; } }
@media (min-width: 1024px) { .cta__card { padding: 64px; } }

.cta__deco-1 {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -64px;
    margin-top: -64px;
    height: 256px;
    width: 256px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    filter: blur(48px);
}

.cta__deco-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: -64px;
    margin-bottom: -64px;
    height: 256px;
    width: 256px;
    border-radius: 50%;
    background: rgba(0, 184, 217, 0.2);
    filter: blur(48px);
}

.cta__inner {
    position: relative;
    z-index: 10;
    max-width: 672px;
    margin: 0 auto;
}

.cta__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.cta__desc {
    color: #BFDBFE; /* blue-100 */
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.625;
}

.cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta__buttons { flex-direction: row; }
}

.btn-cta-primary {
    padding: 12px 32px;
    background-color: #fff;
    color: var(--color-primary);
    font-weight: 700;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    transition: background-color 0.2s;
}

.btn-cta-primary:hover { background-color: #f1f5f9; }

.btn-cta-secondary {
    padding: 12px 32px;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    font-size: 15px;
    transition: background-color 0.2s;
}

.btn-cta-secondary:hover { background-color: rgba(11, 61, 111, 0.8); }

/* ── Footer ── */
.footer {
    background-color: #0b1218;
    border-top: 1px solid var(--color-border-dark);
    padding: 48px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 16px;
}

.footer__brand-icon {
    display: flex;
    height: 32px;
    width: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--color-primary);
    color: #fff;
}

.footer__brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer__tagline {
    color: #94A3B8;
    font-size: 14px;
    max-width: 384px;
    line-height: 1.6;
}

.footer__col-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a,
.footer__links li {
    font-size: 14px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer__links a:hover { color: var(--color-accent); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #64748B; /* slate-500 */
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__bottom-links {
    display: flex;
    gap: 16px;
}

.footer__bottom-links a:hover { color: #fff; }

/* ── Material Symbols size helpers ── */
.icon-sm .material-symbols-outlined { font-size: 16px; }
.material-symbols-outlined.text-base { font-size: 20px; }
.material-symbols-outlined.text-3xl { font-size: 30px; }
