:root {
    /* Color Palette */
    --primary: #1976D2;
    --primary-dark: #115293;
    --primary-light: #4791DB;
    --secondary: #388E3C;
    --secondary-dark: #2E7D32;
    --secondary-light: #4CAF50;
    --accent: #FF6F00;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #BDBDBD;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;

    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 {
    font-size: 3rem; /* 48px */
    font-weight: 700;
}

h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent); /* Using Accent for primary CTA as per material design emphasis often popping */
    color: white;
}

.btn-primary:hover {
    background-color: #e65100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--primary); /* Using Primary Blue for secondary actions */
    color: white;
    width: 100%; /* Full width on cards usually looks better */
    margin-top: auto; /* Push to bottom of flex container */
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
    margin-left: 8px;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

#hero h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xs);
}

.tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Sections General */
section {
    padding: var(--spacing-2xl) 0;
}

/* Ethos Section */
#ethos {
    background-color: var(--background);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    font-size: 1.125rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.principle-card p {
    font-size: 0.95rem;
}

/* Connect Section */
#connect {
    background-color: #F5F5F5; /* Slightly darker background for contrast */
}

.section-subtitle {
    text-align: center;
    margin-top: -30px; /* Pull closer to H2 */
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.platform-card {
    align-items: flex-start; /* Left align for platform cards usually looks cleaner with buttons, but centering is safe too. Let's stick to center for consistency or modify */
    align-items: center; /* Keeping centered for now based on card CSS */
    text-align: center;
}

.platform-card p {
    flex-grow: 1; /* Pushes button to bottom */
    margin-bottom: var(--spacing-md);
}

/* Footer */
footer {
    background-color: #212121;
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    #hero {
        padding: var(--spacing-lg) 0;
    }

    .subtitle { font-size: 1.25rem; }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}
