/* 
   Flashcards Craft - Premium Modern Design
   Palette:
   - Primary Accent: #0EA5E9 (Sky 500)
   - Secondary Accent: #38BDF8 (Sky 400)
   - Dark Text: #0F172A (Slate 900)
   - Muted Text: #475569 (Slate 600)
   - Light Background: #F8FAFC (Slate 50)
   - White: #FFFFFF
*/

:root {
    --color-primary: #0EA5E9;
    --color-primary-hover: #0284C7;
    --color-secondary: #38BDF8;
    --color-dark: #0F172A;
    --color-text: #475569;
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-bg-alt: #F1F5F9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-padding { padding: 6rem 0; }

.bg-surface-alt { background-color: var(--color-surface); }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
}

.btn-secondary:hover {
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #E2E8F0;
    color: var(--color-dark);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: white;
}

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

.btn-white:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.logo-icon {
    color: var(--color-primary);
    stroke-width: 2.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text);
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #E0F2FE;
    color: #0369A1;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
}

.stat-icon {
    color: var(--color-primary);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 10;
    /* Styles neutralized for full flip */
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible; /* Required for 3D */
    aspect-ratio: 3/4;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}


#hero-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    top: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 12s ease-in-out infinite reverse;
}

/* Process/Workflow Section */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    max-width: 300px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.step-desc {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-arrow {
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-arrow i {
    width: 32px;
    height: 32px;
}

/* Sections Common */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-text);
}

/* Pain Points */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid #F1F5F9;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #E2E8F0;
}

.card-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.danger-light { background-color: #FEE2E2; }
.text-danger { color: #EF4444; }

.warning-light { background-color: #FEF3C7; }
.text-warning { color: #F59E0B; }

.info-light { background-color: #E0F2FE; }
.text-info { color: #0EA5E9; }

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--color-text);
    font-size: 1rem;
}

/* Features */
.feature-visual {
    position: relative;
    /* Ensure blobs don't get clipped if they extend slightly */
    z-index: 0; 
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.link-arrow:hover {
    gap: 0.75rem;
}

.mockup-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E2E8F0;
}

.mockup-line {
    height: 12px;
    background-color: #F1F5F9;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

.mockup-btn {
    height: 40px;
    width: 120px;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-top: 2rem;
    opacity: 0.2;
}

.card-preview {
    background-color: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
}

.field-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: #94A3B8;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.field-value {
    color: var(--color-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

hr {
    border: none;
    border-top: 1px dashed #CBD5E1;
    margin: 1rem 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-note {
    font-size: 0.875rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #E2E8F0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand p {
    margin-top: 0.5rem;
    color: var(--color-text);
}

.justify-center {
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #F1F5F9;
    color: #94A3B8;
    font-size: 0.875rem;
    width: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 3rem; }
    .feature-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Mobile Workflow */
    .workflow-steps { flex-direction: column; gap: 3rem; }
    .step-arrow { transform: rotate(90deg); }
    .step-item { max-width: 100%; }
}

/* Flashcard Component */
.flashcard-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    min-height: 340px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    background: transparent;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Moved visual styles to faces */
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-2xl);
    
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

.flashcard-front {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.flashcard-back {
    transform: rotateY(180deg);
    text-align: left;
    align-items: flex-start;
}

.flashcard-text-large {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.4;
    text-align: center;
}

.audio-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.audio-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.audio-btn.small {
    width: 32px;
    height: 32px;
    align-self: flex-start;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.icon-fill {
    fill: currentColor;
    width: 18px;
    height: 18px;
}


.flashcard-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.phonetic-text {
    font-size: 0.85rem;
    color: #94A3B8;
    font-style: italic;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
    width: 100%;
}

.flashcard-section {
    margin-bottom: 1rem;
    width: 100%;
}

.flashcard-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--color-dark);
}

.flashcard-section p {
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
}

.flashcard-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.4rem;
}

.flashcard-list li {
    font-size: 0.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.flashcard-list li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
}
