@charset "UTF-8";
:root {
    --primary: #2A6F7C;
    --accent: #FF6B6B;
    --light: #F8F9FA;
    --dark: #212529;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}
/* Water flow background animation */
.water-flow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
.water-flow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(42, 111, 124, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(42, 111, 124, 0.03) 0%, transparent 40%);
    animation: flow 30s infinite linear;
}
@keyframes flow {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, 100% 100%; }
}
/* Header */
header {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-icon {
    margin-right: 8px;
    position: relative;
}
.logo-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 5px 0;
    position: relative;
}
/* Active page indicator */
.nav-links a.active {
    color: var(--accent);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-signin {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}
.btn-signin:hover {
    background: var(--primary);
    color: white;
}
.btn-signup {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-signup:hover {
    background: #215a66;
}
/* Mobile responsive header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    .header-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .btn-signin, .btn-signup {
        width: 100%;
        max-width: 250px;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    z-index: 10;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
h1 {
    font-family: 'Lora', serif;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(42, 111, 124, 0.1);
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.input-group {
    position: relative;
    max-width: 650px;
    margin: 0 auto 2rem;
}
#story-input {
    width: 100%;
    padding: 1.4rem 1.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: var(--dark);
    outline: none;
    text-align: center;
}
#story-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 111, 124, 0.2);
}
.placeholder-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #a0aec0;
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.7;
    animation: flowText 3s infinite ease-in-out;
}
@keyframes flowText {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.4rem 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
/* How It Works */
.section {
    padding: 5rem 5%;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Lora', serif;
    font-size: 2.4rem;
    color: var(--primary);
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.step {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}
.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(42, 111, 124, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.step-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
    position: relative;
    z-index: 2;
}
.step-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 111, 124, 0.1) 0%, transparent 100%);
    opacity: 0.3;
}
.step h3 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.step p {
    color: #4a5568;
    font-size: 1.1rem;
}
/* Demo Section */
.demo {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 3rem auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}
.demo-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-family: 'Lora', serif;
    font-size: 2rem;
}
.demo-content {
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #2d3748;
    margin: 1.5rem 0;
    position: relative;
}
.demo-content::before {
    content: """;
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 5rem;
    color: rgba(42, 111, 124, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}
.demo-refine {
    text-align: center;
    margin-top: 2rem;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.demo-refine:hover {
    color: var(--accent);
    text-decoration: underline;
}
/* Why Baraj */
.why-baraj {
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f7ff 100%);
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.3s ease;
}
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(42, 111, 124, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary);
}
.feature h3 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
    color: var(--primary);
}
/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5% 2rem;
    text-align: center;
}
.footer-logo {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-logo::after {
    content: " ";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.5rem auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}
.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}
.copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 80%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: color 0.2s;
}
.close:hover {
    color: var(--primary);
}
.modal h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    font-size: 2rem;
}
.modal form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.modal input {
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}
.modal input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 111, 124, 0.2);
}
.modal button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal button:hover {
    background: #215a66;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 111, 124, 0.3);
}
.modal p {
    margin-top: 1rem;
    color: #4a5568;
}
.modal a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.modal a:hover {
    color: #ff5252;
}
/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-menu span {
    color: var(--primary);
    font-weight: 500;
}
.user-menu button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.user-menu button:hover {
    background: #215a66;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .steps, .features {
        grid-template-columns: 1fr;
    }
    .input-group {
        max-width: 100%;
    }
    .section {
        padding: 3rem 5%;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    .step-icon {
        width: 60px;
        height: 60px;
    }
    .modal-content {
        margin: 20% auto;
        padding: 2rem;
    }
}