/* =============================================
   apositronic.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@500&display=swap');

:root {
    --accent: #0066cc;
    --text: #222222;
    --light-gray: #f8f8f8;
    --border: #e0e0e0;
    --light-blue: #f0f7ff;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.65;
    font-size: 18px;
}

.heading-font { font-family: 'Space Grotesk', sans-serif; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== HERO ==================== */
header {
    background-color: #ffffff;
    padding: 110px 0 120px 0;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
}

header h1 {
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

header h2 {
    font-size: 29px;
    font-weight: 400;
    color: #444444;
    margin-bottom: 25px;
}

h3 {
    font-size: 22px;
    font-weight: 800;
    color: #444444;
    margin-bottom: 25px;
    margin-top: 1em;
}

.subtitle {
    font-size: 30px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 50px;
}

.try-it-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 21px;
    font-weight: 500;
    padding: 19px 52px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
    transition: all 0.3s ease;
}

.try-it-btn:hover {
    background-color: #0055aa;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 102, 204, 0.3);
}

.performance-note {
    margin-top: 70px;
    font-size: 19px;
    color: #555555;
    line-height: 1.4;
}

/* ==================== SECTIONS ==================== */
section { padding: 20px 0; }

h2 {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 38px;
    color: var(--accent);
}

p {
	margin-bottom: 1em;
}

/* Table */
.impulsatronics-table {
    color: var(--text);
    width: 100%;
    max-width: 740px;
    margin: 0 auto 50px auto;
    margin-top: 1.5em;
    border-collapse: collapse;
    font-size: 20px;
}

.impulsatronics-table th,
.impulsatronics-table td {
    padding: 22px 30px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.impulsatronics-table th {
    background-color: #e6f0ff;   /* light blue tint */
    font-weight: 500;
    color: #444;
}

/* Feature list */
.features-list {
    max-width: 840px;
    margin: 0 auto;
    columns: 2;
    column-gap: 80px;
}

.features-list li {
    margin-bottom: 24px;
    font-size: 19px;
}

/* Applications grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 25px;
}

.app-card {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 12px;
    font-size: 19px;
    line-height: 1.55;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Code block */
.code-block {
    background-color: #f0f7ff;
    border: 1px solid #d0e0f0;
    border-radius: 12px;
    padding: 34px;
    font-family: 'Courier New', monospace;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre;
    overflow-x: auto;
    max-width: 760px;
    margin: 45px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Funding box */
.funding-box {
    background-color: var(--light-blue);
    padding: 52px 40px;
    border-radius: 12px;
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Footer */
footer {
    background-color: #f0f4f8;
    padding: 15px 0 5px 0;
    text-align: center;
    font-size: 16px;
    color: #555;
    border-top: 1px solid #eeeeee;
}

/* Small refinements */
.studio-note {
	margin-top: 70px;
	font-size: 19px;
	text-align:center;
	max-width:820px;
	margin-left:auto;
	margin-right:auto;
}

/* ==================== MOBILE FIXES ==================== */
@media (max-width: 768px) {
    header {
        padding: 60px 0 80px 0;           /* much less top space */
    }

    .performance-note {
        margin-top: 35px;
    }

    section {
        padding: 15px 0;                  /* slightly tighter sections on phone */
    }

    .features-list {
        columns: 1;                       /* single column on mobile only */
        column-gap: 0;
	padding-left: 25px;
    }

    .container {
        padding: 0 25px;                  /* a bit more breathing room on sides */
    }
}
