/* SELF-HOSTED FONT IMPORTS */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v19-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v19-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-v19-latin-800.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2');
}

/* CSS VARIABLES */
:root {
    --brand-default: #4f6dff;
    --brand-dark: #2448EB;
    --brand-light: #7b93ff;
    --brand-glow: rgba(79, 109, 255, 0.4);
    --brand-gradient: linear-gradient(105deg, var(--brand-light), var(--brand-default));
    --brand-text-gradient: linear-gradient(105deg, #1e293b, #334155);

    --slate-25: #fcfdff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --green-400: #4ade80;
    --red-400: #f87171;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-heading: 'Manrope', var(--font-sans);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 60px -10px var(--brand-glow);

    --border-radius: 8px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--slate-50);
    color: var(--slate-700);
    line-height: 1.65;
    margin: 0;
    font-size: 16px;
    padding-top: 80px; /* Space for the fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p {
    margin: 0 0 1.5rem 0;
    max-width: 65ch;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--brand-default);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 1.5rem 0;
    padding-left: 20px;
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.2s ease-in-out;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: block;
    width: 150px;
    height: 40px;
    background-image: url('../images/akarnu-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
}

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

.nav-links a {
    color: var(--slate-600);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-default);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--slate-900);
}

.nav-links a:hover::after {
    width: 100%;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background-color: white;
    color: var(--brand-dark);
    border-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    color: var(--brand-dark);
    border-color: var(--brand-default);
    background-color: var(--slate-25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-highlight {
    background-color: white;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 150vw);
    height: min(1200px, 150vw);
    background-image: radial-gradient(circle, rgba(79, 109, 255, 0.15) 0%, rgba(248, 250, 252, 0) 60%);
    z-index: -1;
    pointer-events: none;
}
.hero h1 {
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}
.hero p {
    font-size: 1.25rem;
    color: var(--slate-600);
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}
.hero .tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 16px;
}
.hero .btn-primary {
    padding: 16px 32px;
    font-size: 1.125rem;
}
.hero-cta-subtext {
    font-size: 0.9rem !important;
    color: var(--slate-500) !important;
    margin-top: 12px;
    margin-bottom: 0 !important;
    max-width: none;
}

.image-animation-container {
    margin: 60px auto 0;
    max-width: 900px;
    position: relative;
    height: 550px; /* Adjust based on your image aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(120deg, var(--slate-200), var(--slate-100)) border-box;
    box-shadow: var(--shadow-xl), 0 0 80px -20px rgba(79, 109, 255, 0.2);
}
.animated-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.animated-image.active {
    opacity: 1;
}

.styled-link {
    font-weight: 600;
    color: var(--slate-600);
}
.styled-link:hover {
    color: var(--brand-dark);
}

/* PROBLEM SECTION */
.problem-cards-container {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.problem-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    font-size: 1.25rem;
    color: var(--slate-800);
    max-width: 700px;
    text-align: left;
    transition: var(--transition-base);
}
.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.problem-card:last-child {
    background: var(--brand-gradient);
    color: white;
    font-weight: 600;
    border: none;
}


/* GRIDS & CARDS */
.grid {
    display: grid;
    gap: 32px;
}
.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.three-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-card, .step-card, .fit-card {
    background-color: var(--slate-25);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.feature-card:hover, .step-card:hover, .fit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-light);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--slate-100), white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    color: var(--brand-default);
    box-shadow: var(--shadow-md);
}

.feature-card h3, .step-card h3 {
    margin-bottom: 12px;
}

.feature-card p, .step-card p {
    color: var(--slate-600);
    margin-bottom: 0;
}

/* HOW IT WORKS SECTION */
.how-it-works-grid {
    position: relative;
}
.step-card {
    text-align: center;
    background-color: white;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--slate-200);
    color: var(--brand-default);
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: var(--transition-base);
}
.step-card:hover .step-number {
    border-color: var(--brand-default);
    transform: scale(1.1);
}

/* CONTRAST SECTION */
.execution-layer-card {
    margin-top: 60px;
    padding: 40px;
    border-radius: 12px;
    background: var(--brand-text-gradient);
    color: white;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-xl);
}
.execution-layer-card p {
    color: var(--slate-200);
    font-size: 1.5rem;
    font-weight: 600;
    max-width: none;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
}
.execution-layer-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--slate-300);
    font-size: 1.125rem;
}
.execution-layer-flow .arrow {
    color: var(--slate-400);
}
.execution-layer-flow .highlight {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
}

/* FOUNDER SECTION */
.founder-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}
.founder-content p {
    color: var(--slate-600);
    max-width: none;
}
.founder-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* IS THIS FOR YOU SECTION */
.fit-card {
    background-color: white;
}
.fit-card h3 {
    margin-bottom: 24px;
}
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--slate-800);
}
.icon-list li::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}
.icon-list.check li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}
.icon-list.cross li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

/* FAQ SECTION */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-accordion details {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    overflow: hidden;
}

.faq-accordion details:hover {
    border-color: var(--slate-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.faq-accordion details[open] {
    border-color: var(--brand-light);
    box-shadow: 0 0 15px rgba(79, 109, 255, 0.15);
}

.faq-accordion summary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    padding: 20px 24px;
}
.faq-accordion summary:hover {
    background-color: var(--slate-50);
}

.faq-accordion summary::-webkit-details-marker {
    display: none; /* For Safari */
}

.faq-accordion summary::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-accordion details[open] summary {
    color: var(--brand-dark);
    background-color: #f7f9ff;
}

.faq-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.faq-accordion p {
    margin: 0;
    padding: 0 24px 20px 24px;
    color: var(--slate-600);
    line-height: 1.7;
    border-top: 1px solid var(--slate-200);
    padding-top: 20px;
}

/* FOOTER */
.footer {
    background-color: var(--slate-100);
    padding: 32px 0;
    border-top: 1px solid var(--slate-200);
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer p {
    margin: 0;
    color: var(--slate-500);
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--slate-500);
    font-weight: 500;
}
.footer-links a:hover {
    color: var(--brand-dark);
}

/* ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal & Other Pages */
.prose {
    max-width: 800px;
}
.prose h1 { margin-bottom: 2rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1.5rem; }
.prose p, .prose li {
    color: var(--slate-600);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-form {
    max-width: 500px;
    margin: 60px auto 0;
    text-align: left;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--slate-700);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition-base);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-default);
    box-shadow: 0 0 0 3px var(--brand-glow);
}


/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Adjust for potentially smaller header */
    }
    .header {
        padding: 12px 0;
    }
    .nav-left {
        width: 100%;
        justify-content: space-between;
    }
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        display: none; /* Simple mobile approach: hide links */
    }
    .hero {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    .image-animation-container {
        height: 350px;
    }
    .section {
        padding: 80px 0;
    }
    .founder-card {
        padding: 32px;
    }
}
