:root {
    --primary-color: #451149;
    --secondary-color: #BBC5FA;
    --accent-color: #B6A5C2;
    --text-color: #333;
    --light-bg: #FDFCFD;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typography & Layout Refinements (LaTeX-inspired) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7; /* Breathable for LaTeX-style justification */
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1.2rem;
}

/* LaTeX style: Indent subsequent paragraphs */
p + p {
    text-indent: 1.5em;
    margin-top: -1.2rem; /* Pull back to maintain consistent baseline rhythm */
}

/* Header & Nav */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.lang-switch {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--white);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.fb-community, .insta-community {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    margin-left: -3px;
    line-height: 0;
}

.fb-community:hover, .insta-community:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fb-community svg, .insta-community svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid var(--white);
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(69, 17, 73, 0.7), rgba(69, 17, 73, 0.7));
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 0;
}

.hero-content {
    padding: 100px 15px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center; /* Hero text usually looks better centered */
    text-indent: 0;
}

/* Sections & Headings */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 3rem;   /* Standard LaTeX-like section spacing */
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
}

h3 {
    color: var(--primary-color);
    margin-top: 2rem;    /* Standard LaTeX-like subsection spacing */
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Lists (LaTeX-inspired itemize/enumerate) */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 3rem; /* Prominent LaTeX indent */
}

li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    p {
        text-align: left; /* Justification can be messy on very small screens */
    }
    p + p {
        text-indent: 0;
        margin-top: 0;
    }
}

/* Features */
.features {
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-card p {
    text-align: center;
    text-indent: 0;
}

/* Screenshots */
.screenshots-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}

.screenshots-scroll img {
    height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Utilities */
.play-store-btn {
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.2s;
}

.play-store-btn:hover {
    transform: scale(1.05);
}

.play-store-btn img {
    height: 60px;
    display: block;
}

.screenshot-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.mt-1 { margin-top: 1rem; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.pl-20 { padding-left: 20px; }
.font-bold { font-weight: bold; }
.font-normal { font-weight: normal; }
.small-text { font-size: 0.8rem; }

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(69, 17, 73, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #5d1763;
}

.form-info {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
    color: var(--primary-color);
}

.form-info p {
    margin-bottom: 0;
    text-align: center;
    font-weight: 500;
}
