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

/* ==================== VARIABLES ==================== */
:root {
    --gradient-start:      #1D2266;
    --gradient-end:        #030828;
    --accent-gradient:     linear-gradient(90deg, #D042F9, #FF6B6B);
    --color-primary:       #dd22a7;
    --color-primary-hover: #fe6b6f;
    --color-background:    #ffffff;
    --color-foreground:    #1f2937;
    --color-muted:         #6b7280;
    --color-border:        #e5e7eb;
    --color-surface:       #f9fafb;

    --font-family:   'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width:     1200px;
    --header-height: 80px;
}

/* ==================== BASE ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family:      var(--font-family);
    font-weight:      300;
    background-color: var(--color-background);
    color:            var(--color-foreground);
    line-height:      1.6;
    padding-top:      var(--header-height);
}

a {
    color:           var(--color-primary);
    text-decoration: none;
    transition:      color 0.2s ease;
}
a:hover {
    color: var(--color-primary-hover);
}

/* ==================== LAYOUT ==================== */
.container {
    max-width:     var(--max-width);
    margin:        0 auto;
    padding-left:  1rem;
    padding-right: 1rem;
}

/* ==================== HEADER ==================== */
header {
    position:         fixed;
    top:              0;
    left:             0;
    right:            0;
    z-index:          100;
    background-color: var(--color-background);
    border-bottom:    1px solid var(--color-border);
    height:           var(--header-height);
}

.header-inner {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    height:          100%;
    padding:         0 1rem;
    max-width:       var(--max-width);
    margin:          0 auto;
}

.header-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size:   1.75rem;
    color:       var(--color-foreground);
}

.header-nav {
    display:     flex;
    align-items: center;
    gap:         1.5rem;
}

.header-nav a {
    color:     var(--color-muted);
    font-size: 0.95rem;
}
.header-nav a:hover {
    color: var(--color-primary);
}

.btn-primary {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    padding:          0.75rem 1.25rem;
    background-color: var(--color-primary);
    color:            #fff !important;
    font-weight:      600;
    font-size:        0.95rem;
    border-radius:    8px;
    transition:       background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform:        scale(0.98);
}

/* ==================== HERO ==================== */
.hero {
    position:   relative;
    overflow:   hidden;
    padding:    6rem 1rem 4rem;
    background: linear-gradient(to top, var(--gradient-end), var(--gradient-start));
}

.hero::before,
.hero::after {
    content:       '';
    position:      absolute;
    border-radius: 50%;
    opacity:       0.1;
    background:    #fff;
}
.hero::before {
    width:  400px;
    height: 400px;
    top:    -100px;
    left:   -100px;
}
.hero::after {
    width:  300px;
    height: 300px;
    bottom: -50px;
    right:  -50px;
}

.hero-content {
    position:     relative;
    z-index:      1;
    max-width:    800px;
    text-align:   left;
    margin-left:  0;
    margin-right: auto;
}

.hero h1 {
    font-size:               clamp(1.75rem, 5vw, 3rem);
    font-weight:             800;
    line-height:             1.15;
    letter-spacing:          -0.02em;
    background:              var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip:         text;
    color:                   transparent;
}

.hero-bar {
    width:         64px;
    height:        4px;
    background:    var(--accent-gradient);
    margin-top:    1.5rem;
    border-radius: 2px;
}

/* ==================== MAIN CONTENT ==================== */
main {
    padding: 3rem 0 6rem;
}

.content-grid {
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   3rem;
}
@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 3fr 1fr;
    }
}

.content-main {
    max-width: 800px;
}

/* ==================== SECTIONS ==================== */
section {
    margin-bottom: 3rem;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
}

section h2 {
    font-size:     1.5rem;
    font-weight:   700;
    margin-bottom: 1rem;
    color:         var(--color-foreground);
}

section p {
    color:         var(--color-foreground);
    line-height:   1.8;
    margin-bottom: 1rem;
}

.app-link {
    color:                  var(--color-foreground);
    text-decoration:        underline;
    text-underline-offset:  4px;
}
.app-link:hover {
    color: var(--color-foreground);
}

.external-link {
    display:    block;
    margin-top: 0.5rem;
    font-size:  0.9rem;
    color:      var(--color-muted);
}

/* ==================== FAQ ==================== */
.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    font-size:     1.75rem;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
    width:            100%;
    display:          flex;
    align-items:      center;
    justify-content:  space-between;
    padding:          1.25rem 0;
    background:       none;
    border:           none;
    cursor:           pointer;
    text-align:       left;
    font-size:        1rem;
    font-weight:      600;
    color:            var(--color-foreground);
    transition:       color 0.2s ease;
}
.faq-trigger:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition:  transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-panel {
    max-height: 0;
    overflow:   hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-panel {
    max-height: 500px;
}

.faq-answer {
    padding-bottom: 1.25rem;
    color:          var(--color-muted);
    line-height:    1.7;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .sidebar {
        display:      block;
        border-left:  1px solid var(--color-border);
        padding-left: 2rem;
    }
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--color-surface);
    border-top:       1px solid var(--color-border);
    padding:          3rem 0;
}

.footer-inner {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            1.5rem;
    text-align:     center;
}
@media (min-width: 768px) {
    .footer-inner {
        flex-direction:  row;
        justify-content: space-between;
        text-align:      left;
    }
}

.footer-logo {
    display:     flex;
    align-items: center;
    gap:         0.75rem;
}

.footer-logo img {
    width:  40px;
    height: auto;
}

.footer-logo span {
    font-weight: 700;
    font-size:   1.25rem;
    color:       var(--color-foreground);
}

.footer-links {
    display:   flex;
    flex-wrap: wrap;
    gap:       1.5rem;
}

.footer-links a {
    color:     var(--color-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top:  2rem;
    padding-top: 2rem;
    border-top:  1px solid var(--color-border);
    text-align:  center;
    font-size:   0.85rem;
    color:       var(--color-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}
