/* ============================================================
   IORDEN — style.css
   ============================================================ */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Custom Properties ------------------------------------- */
:root {
    --green:        #20461b;
    --green-mid:    #2a5c23;
    --green-hover:  #3a7a30;
    --mint:         #f2f9f0;
    --white:        #ffffff;
    --text:         #1a1a1a;
    --text-muted:   #4d6349;
    --border:       rgba(32, 70, 27, 0.15);

    --radius:       6px;
    --section-pad:  clamp(4.5rem, 10vw, 8rem);
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

p { line-height: 1.7; color: var(--text-muted); }

/* --- Layout ------------------------------------------------- */
.container {
    width: min(100% - 3rem, 1200px);
    margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section--mint  { background: var(--mint); }
.section--white { background: var(--white); }
.section--dark  { background: var(--green); }

/* --- Section Labels ---------------------------------------- */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    border: 1.5px solid var(--green);
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}
.section-label--light {
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.35);
}

.section-heading { margin-bottom: 0.75rem; }
.section-heading--light { color: var(--white); }
.section-sub {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}
.section-sub--light { color: rgba(255,255,255,0.7); }

/* --- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--light {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
}
.btn--light:hover { background: var(--mint); border-color: var(--mint); }

.btn--dark {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn--dark:hover { background: var(--green-hover); border-color: var(--green-hover); }

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

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* --- Forms ------------------------------------------------- */
.form-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 460px;
}

.form-row input[type="email"] {
    flex: 1 1 220px;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.hero__form .form-row input[type="email"],
.cta__form  .form-row input[type="email"] {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
}
.hero__form .form-row input[type="email"]::placeholder,
.cta__form  .form-row input[type="email"]::placeholder {
    color: rgba(255,255,255,0.45);
}
.hero__form .form-row input[type="email"]:focus,
.cta__form  .form-row input[type="email"]:focus {
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.18);
}

.form-feedback {
    margin-top: 0.6rem;
    font-size: 0.875rem;
    min-height: 1.2rem;
    font-family: 'Inter', sans-serif;
}
.form-feedback--success { color: #9de89a; }
.form-feedback--error   { color: #ff9f9f; }

/* Spinner inside button */
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }

/* --- Header ------------------------------------------------ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding-block: 1.25rem;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.header--transparent { background: transparent; }
.header--solid {
    background: var(--white);
    box-shadow: 0 1px 24px rgba(0,0,0,0.07);
    padding-block: 0.9rem;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header__logo img {
    height: 28px;
    width: auto;
    transition: opacity 0.2s;
}
.header__logo:hover img { opacity: 0.8; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header__nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.header__nav a:hover { color: var(--white); }

.header--solid .header__nav a { color: var(--text-muted); }
.header--solid .header__nav a:hover { color: var(--green); }

.header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 0.3rem 0.65rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.lang-toggle:hover { color: var(--white); border-color: var(--white); }
.header--solid .lang-toggle { color: var(--green); border-color: var(--border); }
.header--solid .lang-toggle:hover { border-color: var(--green); background: var(--mint); }

/* --- Hero -------------------------------------------------- */
.hero {
    min-height: 100svh;
    background: var(--green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-block: 8rem 5rem;
}

/* Diagonal stripe texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.025) 40px,
        rgba(255,255,255,0.025) 41px
    );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__logo {
    width: clamp(180px, 28vw, 300px);
    margin-bottom: 2.5rem;
}

.hero__tagline {
    color: var(--white);
    font-size: clamp(3.5rem, 9vw, 7rem);
    margin-bottom: 1.25rem;
    max-width: 14ch;
}

.hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.72);
    max-width: 52ch;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Problem ----------------------------------------------- */
.problem__grid {
    display: grid;
    gap: 2.5rem;
}

.problem__pull {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--green);
    max-width: 22ch;
}

.problem__body {
    max-width: 55ch;
}
.problem__body p {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* --- Solution ---------------------------------------------- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}
.feature-card.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    box-shadow: 0 10px 40px rgba(32,70,27,0.1);
    transform: translateY(-3px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--green);
}

.feature-card__title {
    color: var(--green);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-card__body { font-size: 0.95rem; }

/* --- Pricing ----------------------------------------------- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 760px;
}

.pricing-card {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.pricing-card.is-visible { opacity: 1; transform: none; }

.pricing-card--featured {
    background: var(--white);
    border-color: var(--white);
    position: relative;
}

.pricing-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-hover);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card__name {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}
.pricing-card--featured .pricing-card__name { color: var(--green); }

.pricing-card__model {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}
.pricing-card--featured .pricing-card__model { color: var(--text-muted); }

.pricing-card__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}
.pricing-card--featured .pricing-card__desc { color: var(--text-muted); }

.pricing-card__features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.pricing-card__features li {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    padding-left: 1.25rem;
    position: relative;
}
.pricing-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
}
.pricing-card--featured .pricing-card__features li { color: var(--text); }
.pricing-card--featured .pricing-card__features li::before { color: var(--green); }

/* --- Team -------------------------------------------------- */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.team-card.is-visible { opacity: 1; transform: none; }

.team-card__avatar {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.team-card__avatar img {
	width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card__name {
    font-size: 1.35rem;
    color: var(--green);
    margin-bottom: 0.35rem;
}

.team-card__role {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.team-card__bio { font-size: 0.9rem; }

/* --- CTA section ------------------------------------------- */
.cta-section { text-align: center; }

.cta-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section .section-label,
.cta-section .section-heading--light,
.cta-section .section-sub--light { text-align: center; }

.cta__form .form-row { justify-content: center; }

.cta-section__mission {
    margin-top: 4rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    color: rgba(255,255,255,0.55);
    max-width: 44ch;
    line-height: 1.3;
    text-transform: none;
}

/* --- Footer ------------------------------------------------ */
.footer {
    background: var(--green);
    padding-block: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer__logo { height: 22px; width: auto; opacity: 0.8; }

.footer__email {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer__email:hover { color: var(--white); }

.footer__copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1;
}

/* --- Responsive -------------------------------------------- */
@media (min-width: 768px) {
    .problem__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }
    .hero__sub { margin-bottom: 3rem; }
}

@media (max-width: 767px) {
    .header__nav { display: none; }
    .hero { padding-block: 7rem 4rem; }
    .hero__logo { margin-bottom: 2rem; }
	.team-card__avatar {
		width: 128px;
		height: 128px;
	}
}

/* --- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .pricing-card,
    .team-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}
